Skip to content
Snippets Groups Projects
Commit d9e90b4d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Restore compatibility with some version of FFmpeg

parent 84d91009
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
if( var_CreateGetBool( p_dec, "avcodec-fast" ) )
p_sys->p_context->flags2 |= CODEC_FLAG2_FAST;
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 54, 41, 0 )
#if LIBAVCODEC_VERSION_CHECK( 54, 41, 0, 91, 100 )
if( var_InheritBool( p_dec, "avcodec-ignorecrop" ) )
p_sys->p_context->flags2 |= CODEC_FLAG2_IGNORE_CROP;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment