avcodec/dvaudiodec: set channel layout

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-01-27 11:19:58 +01:00
parent ce404b4d7c
commit 74e8f4f674
1 changed files with 1 additions and 0 deletions

View 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;