]> git.sesse.net Git - vlc/commitdiff
Restore compatibility with some version of FFmpeg
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Mar 2013 23:34:34 +0000 (00:34 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 25 Mar 2013 23:34:34 +0000 (00:34 +0100)
modules/codec/avcodec/video.c

index ab5bc6619a759b8a9c3c91e6dd976948ac491881..7697ef98cc1b1182706ce3afd16c2a3db4edd9f9 100644 (file)
@@ -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