[FFmpeg-cvslog] wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit

Hendrik Leppkes git at videolan.org
Mon Jul 23 21:55:23 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Dec 16 22:43:35 2011 +0100| [37c6ad23451eeda83621d34ff9ab0f6fd2cbf3dd] | committer: Derek Buitenhuis

wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-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=37c6ad23451eeda83621d34ff9ab0f6fd2cbf3dd
---

 libavcodec/wavpack.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 022a4ce..920e0b5 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -1202,6 +1202,7 @@ static int wavpack_decode_frame(AVCodecContext *avctx, void *data,
         avctx->sample_fmt = AV_SAMPLE_FMT_S16;
     } else {
         avctx->sample_fmt = AV_SAMPLE_FMT_S32;
+        avctx->bits_per_raw_sample = ((frame_flags & 0x03) + 1) << 3;
     }
 
     /* get output buffer */



More information about the ffmpeg-cvslog mailing list