summaryrefslogtreecommitdiff
path: root/libavcodec/pcm-mpeg.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-04-29 17:21:55 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-05-01 20:59:09 -0400
commitff80c68264fc90df3b97a817279f156afec5b964 (patch)
treeda9d7b716d158a24a18c1363f6638e54b74459c7 /libavcodec/pcm-mpeg.c
parent4bf2e7c5f1c0ad3997fd7c9859c16db8e4e16df6 (diff)
pcm_bluray: set bits_per_raw_sample for > 16-bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/pcm-mpeg.c')
-rw-r--r--libavcodec/pcm-mpeg.c1
1 files changed, 1 insertions, 0 deletions
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) {