summaryrefslogtreecommitdiff
path: root/libavcodec/pcm-mpeg.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2011-02-04 23:45:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-10-24 18:41:03 +0200
commit84e0553c1c8c05330e036a8e2480e9c02a3402df (patch)
tree8d20d4042d03ee178808a8fcfe4df7349e12924a /libavcodec/pcm-mpeg.c
parent463c8d8621f360f644bc3a1dec16e08904ec2a08 (diff)
pcm_bluray: set bits_per_raw_sample for > 16-bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pcm-mpeg.c')
-rw-r--r--libavcodec/pcm-mpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c
index 1e8a39ef76..5d3dd7036a 100644
--- a/libavcodec/pcm-mpeg.c
+++ b/libavcodec/pcm-mpeg.c
@@ -75,6 +75,8 @@ 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;
+ if (avctx->sample_fmt == 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) {