[FFmpeg-cvslog] pcm_bluray: set bits_per_raw_sample for > 16-bit
Hendrik Leppkes
git at videolan.org
Mon Oct 24 19:04:30 CEST 2011
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Feb 4 23:45:15 2011 +0100| [84e0553c1c8c05330e036a8e2480e9c02a3402df] | committer: Michael Niedermayer
pcm_bluray: set bits_per_raw_sample for > 16-bit
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84e0553c1c8c05330e036a8e2480e9c02a3402df
---
libavcodec/pcm-mpeg.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c
index 1e8a39e..5d3dd70 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) {
More information about the ffmpeg-cvslog
mailing list