Skip to content

Commit a6c5c7a

Browse files
author
Clement Champetier
committed
decoders: skipped unnecessary set of "codec" option when setupDecoder
1 parent 4b87c8d commit a6c5c7a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/AvTranscoder/decoder/AudioDecoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ void AudioDecoder::setupDecoder(const ProfileLoader::Profile& profile)
5656
for(ProfileLoader::Profile::const_iterator it = profile.begin(); it != profile.end(); ++it)
5757
{
5858
if((*it).first == constants::avProfileIdentificator || (*it).first == constants::avProfileIdentificatorHuman ||
59-
(*it).first == constants::avProfileType || (*it).first == constants::avProfileThreads)
59+
(*it).first == constants::avProfileType || (*it).first == constants::avProfileCodec ||
60+
(*it).first == constants::avProfileThreads)
6061
continue;
6162

6263
try

src/AvTranscoder/decoder/VideoDecoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ void VideoDecoder::setupDecoder(const ProfileLoader::Profile& profile)
5454
for(ProfileLoader::Profile::const_iterator it = profile.begin(); it != profile.end(); ++it)
5555
{
5656
if((*it).first == constants::avProfileIdentificator || (*it).first == constants::avProfileIdentificatorHuman ||
57-
(*it).first == constants::avProfileType || (*it).first == constants::avProfileThreads)
57+
(*it).first == constants::avProfileType || (*it).first == constants::avProfileCodec ||
58+
(*it).first == constants::avProfileThreads)
5859
continue;
5960

6061
try

0 commit comments

Comments
 (0)