]> git.sesse.net Git - vlc/commitdiff
FFmpeg: protect against old versions of avcodec...
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Aug 2009 21:22:11 +0000 (23:22 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Aug 2009 21:22:11 +0000 (23:22 +0200)
modules/codec/avcodec/fourcc.c

index 0b5d619054e8a9471fa3d24d8d2c4413d07959b1..e436325a0afb5ca436461e6dc922811af54acfb6 100644 (file)
@@ -360,12 +360,14 @@ static const struct
     { VLC_CODEC_ALAW, CODEC_ID_PCM_ALAW, AUDIO_ES },
     { VLC_CODEC_MULAW, CODEC_ID_PCM_MULAW, AUDIO_ES },
     { VLC_CODEC_S24DAUD, CODEC_ID_PCM_S24DAUD, AUDIO_ES },
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 66, 0 )
 #if ( !defined( WORDS_BIGENDIAN ) )
     { VLC_CODEC_FL32, CODEC_ID_PCM_F32LE, AUDIO_ES },
     { VLC_CODEC_FL64, CODEC_ID_PCM_F64LE, AUDIO_ES },
 #else
     { VLC_CODEC_FL32, CODEC_ID_PCM_F32BE, AUDIO_ES },
     { VLC_CODEC_FL64, CODEC_ID_PCM_F64BE, AUDIO_ES },
+#endif
 #endif
 
     /* Subtitle streams */