From 07d49437d5226e86b16eeca2f0b6048a674b2bc5 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 16 Dec 2011 22:43:35 +0100 Subject: [PATCH] wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit Signed-off-by: Michael Niedermayer --- libavcodec/wavpack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 3ba996157b..08c75edcb6 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 */