[vlc-devel] commit: Avcodec: safeguard for people not using the latest libavcodec ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Sep 3 10:08:03 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Sep  3 10:05:41 2009 +0200| [09ec87b09dd8b2af7d39d4ce362350c1661bd86d] | committer: Jean-Baptiste Kempf 

Avcodec: safeguard for people not using the latest libavcodec

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

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

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 77413fd..b05cb0f 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -191,9 +191,11 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
     case CODEC_ID_FLAC:
         p_sys->i_output_max = 8 * sizeof(int32_t) * 65535;
         break;
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 35, 0 )
     case CODEC_ID_WMAPRO:
         p_sys->i_output_max = 8 * sizeof(float) * 6145; /* (1 << 12) * 3/2 */
         break;
+#endif
     default:
         p_sys->i_output_max = 0;
         break;




More information about the vlc-devel mailing list