[FFmpeg-cvslog] pcm_bluray: set bits_per_raw_sample for > 16-bit

Hendrik Leppkes git at videolan.org
Wed May 2 21:26:52 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun Apr 29 17:21:55 2012 +0000| [ff80c68264fc90df3b97a817279f156afec5b964] | committer: Derek Buitenhuis

pcm_bluray: set bits_per_raw_sample for > 16-bit

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

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

 libavcodec/pcm-mpeg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c
index 3604013..51a08d6 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) {



More information about the ffmpeg-cvslog mailing list