Commit 09ec87b0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avcodec: safeguard for people not using the latest libavcodec

parent 61ad0da5
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment