Commit d9e90b4d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Restore compatibility with some version of FFmpeg

parent 84d91009
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment