summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-01-26 00:18:59 +0100
committerJohns <johns98@gmx.net>2013-01-26 00:18:59 +0100
commit8b225857487580622d337cd2e385c919bdc3269e (patch)
tree3f70c8a9a68e0a3be992666bd2ad568dd9e9ccf9 /codec.c
parent7ed6975330328e62a0fccdc842c17cbc80b73c09 (diff)
downloadvdr-plugin-softhddevice-8b225857487580622d337cd2e385c919bdc3269e.tar.gz
vdr-plugin-softhddevice-8b225857487580622d337cd2e385c919bdc3269e.tar.bz2
Never trust the docs: fix ffmpeg downsample.
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c2
1 files changed, 1 insertions, 1 deletions
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 =