Skip to content

Commit f60840e

Browse files
author
Clement Champetier
committed
VideoProperties: removed check of profile when getProfileName
This check is already done by av_get_profile_name method.
1 parent b4ac191 commit f60840e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ std::string VideoProperties::getProfileName() const
4343
if(_codec->capabilities & CODEC_CAP_TRUNCATED)
4444
_codecContext->flags |= CODEC_FLAG_TRUNCATED;
4545

46-
if(_codecContext->profile == -99)
47-
throw std::runtime_error("unknown codec profile");
48-
4946
const char* profile = NULL;
5047
if((profile = av_get_profile_name(_codec, getProfile())) == NULL)
5148
throw std::runtime_error("unknown codec profile");

0 commit comments

Comments
 (0)