avcodec/dvaudiodec: set channel layout
authorPaul B Mahol <onemda@gmail.com>
Wed, 27 Jan 2016 10:19:58 +0000 (11:19 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 27 Jan 2016 10:19:58 +0000 (11:19 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dvaudiodec.c

index 1df3edf..a0f3b19 100644 (file)
@@ -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;