From 8b225857487580622d337cd2e385c919bdc3269e Mon Sep 17 00:00:00 2001 From: Johns Date: Sat, 26 Jan 2013 00:18:59 +0100 Subject: [PATCH] Never trust the docs: fix ffmpeg downsample. --- codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec.c b/codec.c index f9132fd..e47b8d3 100644 --- a/codec.c +++ b/codec.c @@ -736,7 +736,7 @@ void CodecAudioOpen(AudioDecoder * audio_decoder, const char *name, } if (CodecDownmix) { -#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(53,61,100) +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(53,61,100) || FF_API_REQUEST_CHANNELS audio_decoder->AudioCtx->request_channels = 2; #endif audio_decoder->AudioCtx->request_channel_layout =