aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-01-27 11:19:58 +0100
committerPaul B Mahol <onemda@gmail.com>2016-01-27 11:19:58 +0100
commit74e8f4f674466d7f0b6810954c7b496286d56d6c (patch)
treec5f7a0b54799b1a73c0acb2700ae27c05203bb48
parentce404b4d7c999bd8dee0f013a353ae04288239b0 (diff)
downloadffmpeg-74e8f4f674466d7f0b6810954c7b496286d56d6c.tar.gz
avcodec/dvaudiodec: set channel layout
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/dvaudiodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dvaudiodec.c b/libavcodec/dvaudiodec.c
index 1df3edfd62..a0f3b191fb 100644
--- a/libavcodec/dvaudiodec.c
+++ b/libavcodec/dvaudiodec.c
@@ -51,6 +51,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
s->is_12bit = avctx->bits_per_raw_sample == 12;
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
+ avctx->channel_layout = AV_CH_LAYOUT_STEREO;
for (i = 0; i < FF_ARRAY_ELEMS(s->shuffle); i++) {
const unsigned a = s->is_pal ? 18 : 15;