aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2011-12-16 22:43:35 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-07-23 11:33:58 -0400
commit37c6ad23451eeda83621d34ff9ab0f6fd2cbf3dd (patch)
tree1d9f041c8a0f60740b0e494339c5e27c93a0a9f2 /libavcodec
parent58db34aa1e6c4cb1d876d0abc497c5e902da857e (diff)
downloadffmpeg-37c6ad23451eeda83621d34ff9ab0f6fd2cbf3dd.tar.gz
wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wavpack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 022a4ce7d5..920e0b5fd9 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 */