|
|
@@ -796,6 +796,9 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no, |
|
|
if (!wc->mkv_mode) { |
|
|
if (!wc->mkv_mode) { |
|
|
s->samples = AV_RL32(buf); |
|
|
s->samples = AV_RL32(buf); |
|
|
buf += 4; |
|
|
buf += 4; |
|
|
|
|
|
if (s->samples != wc->samples) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
|
|
|
|
|
if (!s->samples) { |
|
|
if (!s->samples) { |
|
|
*got_frame_ptr = 0; |
|
|
*got_frame_ptr = 0; |
|
|
return 0; |
|
|
return 0; |
|
|
|