summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/dvaudiodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvaudiodec.c b/libavcodec/dvaudiodec.c
index faa9e5fb34..5aa2a95553 100644
--- a/libavcodec/dvaudiodec.c
+++ b/libavcodec/dvaudiodec.c
@@ -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;