Module: libav Branch: master Commit: 37c6ad23451eeda83621d34ff9ab0f6fd2cbf3dd
Author: Hendrik Leppkes <[email protected]> Committer: Derek Buitenhuis <[email protected]> Date: Fri Dec 16 22:43:35 2011 +0100 wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit Signed-off-by: Michael Niedermayer <[email protected]> Signed-off-by: Derek Buitenhuis <[email protected]> --- libavcodec/wavpack.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 */ _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
