OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a38d9
)
wavpack: fix wrong return value in wavpack_decode_block()
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 5 Sep 2011 10:37:50 +0000
(12:37 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Mon, 5 Sep 2011 10:44:26 +0000
(12:44 +0200)
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>
libavcodec/wavpack.c
patch
|
blob
|
history
diff --git
a/libavcodec/wavpack.c
b/libavcodec/wavpack.c
index
ea5dfba
..
22fab38
100644
(file)
--- 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;