diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2011-12-16 22:43:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-21 11:47:00 +0200 |
commit | 07d49437d5226e86b16eeca2f0b6048a674b2bc5 (patch) | |
tree | eabb8c717533f7730e40e4adc58aedeea2e1e944 /libavcodec/wavpack.c | |
parent | 98701be3565f51dfd7983d405e055f7cde0238b2 (diff) | |
download | ffmpeg-streaming-07d49437d5226e86b16eeca2f0b6048a674b2bc5.zip ffmpeg-streaming-07d49437d5226e86b16eeca2f0b6048a674b2bc5.tar.gz |
wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r-- | libavcodec/wavpack.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |