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

Hendrik Leppkes git at videolan.org
Thu Jun 21 12:37:56 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Dec 16 22:43:35 2011 +0100| [07d49437d5226e86b16eeca2f0b6048a674b2bc5] | committer: Michael Niedermayer

wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 3ba9961..08c75ed 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