OSDN Git Service

avcodec/dvaudiodec: now that we got samples, fix 12bit case
authorPaul B Mahol <onemda@gmail.com>
Wed, 23 Mar 2016 08:26:35 +0000 (09:26 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 23 Mar 2016 08:32:34 +0000 (09:32 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dvaudiodec.c

index faa9e5f..5aa2a95 100644 (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;