File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/AvTranscoder/mediaProperty Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,14 @@ std::string VideoProperties::getProfileName() const
85
85
if ( _codec->capabilities & CODEC_CAP_TRUNCATED )
86
86
_codecContext->flags |= CODEC_FLAG_TRUNCATED;
87
87
88
- if ( _codecContext->profile != -99 )
89
- {
90
- const char * profile = NULL ;
91
- if ( ( profile = av_get_profile_name ( _codec, _codecContext->profile ) ) == NULL )
92
- throw std::runtime_error ( " unknown codec profile" );
88
+ if ( _codecContext->profile == -99 )
89
+ throw std::runtime_error ( " unknown codec profile" );
93
90
94
- return std::string ( profile );
95
- }
91
+ const char * profile = NULL ;
92
+ if ( ( profile = av_get_profile_name ( _codec, _codecContext->profile ) ) == NULL )
93
+ throw std::runtime_error ( " unknown codec profile" );
94
+
95
+ return std::string ( profile );
96
96
}
97
97
98
98
std::string VideoProperties::getColorTransfert () const
You can’t perform that action at this time.
0 commit comments