Skip to content

Commit 60d7b3a

Browse files
author
Clement Champetier
committed
Audio profile: avProfileSampleRate is not required
If no sample rate is indicated in the profile, the output file will have the same sample rate as the input file.
1 parent dfdeca4 commit 60d7b3a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/AvTranscoder/EssenceStream/OutputAudio.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ void OutputAudio::setProfile( const Profile::ProfileDesc& desc, const AudioFrame
177177
{
178178
if( ! desc.count( Profile::avProfileCodec ) ||
179179
! desc.count( Profile::avProfileSampleFormat ) ||
180-
! desc.count( Profile::avProfileSampleRate ) ||
181180
! desc.count( Profile::avProfileChannel ) )
182181
{
183182
throw std::runtime_error( "The profile " + desc.find( Profile::avProfileIdentificatorHuman )->second + " is invalid." );
@@ -194,7 +193,6 @@ void OutputAudio::setProfile( const Profile::ProfileDesc& desc, const AudioFrame
194193
(*it).first == Profile::avProfileType ||
195194
(*it).first == Profile::avProfileCodec ||
196195
(*it).first == Profile::avProfileSampleFormat ||
197-
(*it).first == Profile::avProfileSampleRate ||
198196
(*it).first == Profile::avProfileChannel )
199197
continue;
200198

@@ -217,7 +215,6 @@ void OutputAudio::setProfile( const Profile::ProfileDesc& desc, const AudioFrame
217215
(*it).first == Profile::avProfileType ||
218216
(*it).first == Profile::avProfileCodec ||
219217
(*it).first == Profile::avProfileSampleFormat ||
220-
(*it).first == Profile::avProfileSampleRate ||
221218
(*it).first == Profile::avProfileChannel )
222219
continue;
223220

0 commit comments

Comments
 (0)