Skip to content

Commit b4ac191

Browse files
author
Clement Champetier
committed
VideoProperties: refactored getProfileName method
Use VideoProperties::getProfile() method.
1 parent 94c3b73 commit b4ac191

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
@@ -47,7 +47,7 @@ std::string VideoProperties::getProfileName() const
4747
throw std::runtime_error("unknown codec profile");
4848

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

5353
return std::string(profile);

0 commit comments

Comments
 (0)