[vlc-commits] Restore compatibility with some version of FFmpeg

Jean-Baptiste Kempf git at videolan.org
Tue Mar 26 00:35:01 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Mar 26 00:34:34 2013 +0100| [d9e90b4d925a09506407a6c0300213d3f7149658] | committer: Jean-Baptiste Kempf

Restore compatibility with some version of FFmpeg

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9e90b4d925a09506407a6c0300213d3f7149658
---

 modules/codec/avcodec/video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index ab5bc66..7697ef9 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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



More information about the vlc-commits mailing list