Skip to content

Commit 742d9d9

Browse files
author
Clement Champetier
committed
VideoProperties: refactored getProfileName method
Use VideoProperties::getProfile() method.
1 parent f6da521 commit 742d9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ std::string VideoProperties::getProfileName() const
4848
throw std::runtime_error("unknown codec profile");
4949

5050
const char* profile = NULL;
51-
if((profile = av_get_profile_name(_codec, _codecContext->profile)) == NULL)
51+
if((profile = av_get_profile_name(_codec, getProfile())) == NULL)
5252
throw std::runtime_error("unknown codec profile");
5353

5454
return std::string(profile);

0 commit comments

Comments
 (0)