Skip to content

Commit 935c1de

Browse files
author
Clement Champetier
committed
OutputAudio: remove sample rate and channel checks of profile
1 parent 5ad23f7 commit 935c1de

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/AvTranscoder/EssenceStream/OutputAudio.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,6 @@ void OutputAudio::setProfile( Profile::ProfileDesc& desc, const AudioFrameDesc&
186186
throw std::runtime_error( "The profile " + desc[ Profile::avProfileIdentificatorHuman ] + " is invalid." );
187187
}
188188

189-
// check some values of the profile
190-
if( desc[ Profile::avProfileSampleRate ] == "0" )
191-
throw std::runtime_error( "Profile " + desc[ Profile::avProfileIdentificatorHuman ] + ": bad sample rate." );
192-
193-
if( desc[ Profile::avProfileChannel ] == "0" )
194-
throw std::runtime_error( "Profile " + desc[ Profile::avProfileIdentificatorHuman ] + ": bad audio channel." );
195-
196189
_audioDesc.setAudioCodec( desc[ Profile::avProfileCodec ] );
197190
size_t sample_rate = std::strtoul( desc[ Profile::avProfileSampleRate ].c_str(), NULL, 0 );
198191
size_t channels = std::strtoul( desc[ Profile::avProfileChannel ].c_str(), NULL, 0 );

0 commit comments

Comments
 (0)