Browse Source

avcodec/dvaudiodec: now that we got samples, fix 12bit case

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.1
Paul B Mahol 10 years ago
parent
commit
b098e1a469
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/dvaudiodec.c

+ 1
- 1
libavcodec/dvaudiodec.c View File

@@ -52,7 +52,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
}

s->is_pal = s->block_size == 8640;
s->is_12bit = avctx->bits_per_raw_sample == 12;
s->is_12bit = avctx->bits_per_coded_sample == 12;
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
avctx->channel_layout = AV_CH_LAYOUT_STEREO;



Loading…
Cancel
Save