summaryrefslogtreecommitdiff
path: root/libavcodec/wavpack.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2011-09-05 12:37:50 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-09-05 12:44:26 +0200
commitbcd4aa8bec19a17bd633e3db13357784c05b6ca5 (patch)
tree9caf5dcf7a99240b6ce241b5cca035a543848af8 /libavcodec/wavpack.c
parenta2a38d9665802a2b53d6c864128ecb06db96e19c (diff)
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>
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r--libavcodec/wavpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index ea5dfbae16..22fab3804c 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;