From: Hendrik Leppkes <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
---
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 */
--
1.7.10.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel