We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323f28b commit 841fa76Copy full SHA for 841fa76
src/AvTranscoder/Metadatas/VideoStreamProperties.hpp
@@ -281,7 +281,7 @@ VideoProperties videoStreamInfo(
281
const AVPixFmtDescriptor* pixFmt = av_pix_fmt_desc_get( codec_context->pix_fmt );
282
#else
283
const AVPixFmtDescriptor* pixFmt = NULL;
284
- if( codec_context->pix_fmt > 0 && codec_context->pix_fmt < PIX_FMT_NB )
+ if( codec_context->pix_fmt >= 0 && codec_context->pix_fmt < PIX_FMT_NB )
285
pixFmt = &av_pix_fmt_descriptors[ codec_context->pix_fmt ];
286
#endif
287
0 commit comments