[FFmpeg-cvslog] avcodec/dvaudiodec: now that we got samples, fix 12bit case

Paul B Mahol git at videolan.org
Wed Mar 23 09:32:50 CET 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Mar 23 09:26:35 2016 +0100| [b098e1a4697573d5c501aceb863d89ebf1fcd5fd] | committer: Paul B Mahol

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

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b098e1a4697573d5c501aceb863d89ebf1fcd5fd
---

 libavcodec/dvaudiodec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dvaudiodec.c b/libavcodec/dvaudiodec.c
index faa9e5f..5aa2a95 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;
 



More information about the ffmpeg-cvslog mailing list