From ff80c68264fc90df3b97a817279f156afec5b964 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 29 Apr 2012 17:21:55 +0000 Subject: [PATCH] pcm_bluray: set bits_per_raw_sample for > 16-bit Signed-off-by: Michael Niedermayer Signed-off-by: Derek Buitenhuis --- libavcodec/pcm-mpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c index 3604013e08..51a08d68d2 100644 --- a/libavcodec/pcm-mpeg.c +++ b/libavcodec/pcm-mpeg.c @@ -75,6 +75,7 @@ static int pcm_bluray_parse_header(AVCodecContext *avctx, } avctx->sample_fmt = avctx->bits_per_coded_sample == 16 ? AV_SAMPLE_FMT_S16 : AV_SAMPLE_FMT_S32; + avctx->bits_per_raw_sample = avctx->bits_per_coded_sample; /* get the sample rate. Not all values are known or exist. */ switch (header[2] & 0x0f) {