Skip to content

Commit 4df7cc4

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 f56b7d1 commit 4df7cc4

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
@@ -46,9 +46,6 @@ std::string VideoProperties::getProfileName() const
4646
if(_codec->capabilities & CODEC_CAP_TRUNCATED)
4747
_codecContext->flags |= CODEC_FLAG_TRUNCATED;
4848

49-
if(_codecContext->profile == -99)
50-
throw std::runtime_error("unknown codec profile");
51-
5249
const char* profile = NULL;
5350
if((profile = av_get_profile_name(_codec, getProfile())) == NULL)
5451
throw std::runtime_error("unknown codec profile");

0 commit comments

Comments
 (0)