diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2011-09-05 12:37:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-21 17:56:15 +0200 |
commit | c026f336b9ff78ba450ff53a67ec2e5cd19dd454 (patch) | |
tree | ff6ff4c8d8a3e33c206e3c4c164c32dabc8b0b38 | |
parent | 5c2d6849862f975254a82d8cdb82d64f8f148ec2 (diff) | |
download | ffmpeg-c026f336b9ff78ba450ff53a67ec2e5cd19dd454.tar.gz |
wavpack: fix wrong return value in wavpack_decode_block()
This function should return number of samples decoded, not number of bytes
decoded.
Spotted by Uoti Urpala.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit bcd4aa8bec19a17bd633e3db13357784c05b6ca5)
-rw-r--r-- | libavcodec/wavpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 0d92f1802c..61a75fd765 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -800,7 +800,7 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no, s->samples = AV_RL32(buf); buf += 4; if(!s->samples){ *data_size = 0; - return buf_size; + return 0; } }else{ s->samples = wc->samples; |