Commit b098e1a4 authored by Paul B Mahol's avatar Paul B Mahol

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

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 65cff814
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment