Skip to content

Commit db3dd17

Browse files
author
Clement Champetier
committed
VideoProperties: fix if can't access profile name
1 parent 7c2e6fc commit db3dd17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/mediaProperty/VideoProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ std::string VideoProperties::getProfileName() const
8484

8585
if( _codecContext->profile != -99 )
8686
{
87-
const char* profile;
87+
const char* profile = NULL;
8888
if( ( profile = av_get_profile_name( _codec, _codecContext->profile ) ) != NULL )
8989
return std::string( profile );
9090
}

0 commit comments

Comments
 (0)