mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avcodec/wavpack: simplify the code
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1a7f4a122e
commit
8250bb49b1
@ -1114,9 +1114,7 @@ static int wavpack_decode_frame(AVCodecContext *avctx, void *data,
|
||||
avctx->bits_per_raw_sample = ((frame_flags & 0x03) + 1) << 3;
|
||||
}
|
||||
|
||||
while (buf_size > 0) {
|
||||
if (buf_size <= WV_HEADER_SIZE)
|
||||
break;
|
||||
while (buf_size > WV_HEADER_SIZE) {
|
||||
frame_size = AV_RL32(buf + 4) - 12;
|
||||
buf += 20;
|
||||
buf_size -= 20;
|
||||
|
Loading…
Reference in New Issue
Block a user