Browse Source

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>
tags/n0.9
Kostya Shishkov Luca Barbato 13 years ago
parent
commit
bcd4aa8bec
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wavpack.c

+ 1
- 1
libavcodec/wavpack.c View File

@@ -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;


Loading…
Cancel
Save