]> git.sesse.net Git - vlc/commitdiff
Avcodec: safeguard for people not using the latest libavcodec
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 3 Sep 2009 08:05:41 +0000 (10:05 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 3 Sep 2009 08:07:55 +0000 (10:07 +0200)
modules/codec/avcodec/audio.c

index 77413fd4155759aeef7c6b5aacb5d7f168d7ea9a..b05cb0f2c11eb75ae44b2b1b07ac3921ec277fd3 100644 (file)
@@ -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;