[vlc-devel] commit: FFmpeg: protect against old versions of avcodec... ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Aug 27 23:22:35 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 27 23:22:11 2009 +0200| [60e6aa8b596351870c42b56b19a17d1bb0eb57b1] | committer: Jean-Baptiste Kempf 

FFmpeg: protect against old versions of avcodec...

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

 modules/codec/avcodec/fourcc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 0b5d619..e436325 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -360,6 +360,7 @@ 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 },
@@ -367,6 +368,7 @@ static const struct
     { VLC_CODEC_FL32, CODEC_ID_PCM_F32BE, AUDIO_ES },
     { VLC_CODEC_FL64, CODEC_ID_PCM_F64BE, AUDIO_ES },
 #endif
+#endif
 
     /* Subtitle streams */
     /* Before this version, subs were too experimental */




More information about the vlc-devel mailing list