[FFmpeg-cvslog] wavpack: fix wrong return value in wavpack_decode_block()
Kostya Shishkov
git at videolan.org
Mon Sep 5 22:55:41 CEST 2011
ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Mon Sep 5 12:37:50 2011 +0200| [bcd4aa8bec19a17bd633e3db13357784c05b6ca5] | committer: Luca Barbato
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 at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bcd4aa8bec19a17bd633e3db13357784c05b6ca5
---
libavcodec/wavpack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index ea5dfba..22fab38 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -780,7 +780,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;
More information about the ffmpeg-cvslog
mailing list