---
libavcodec/wavpack.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 073059b..3cc0533 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -1212,6 +1212,11 @@ static int wavpack_decode_frame(AVCodecContext *avctx,
void *data,
buf_size -= frame_size;
}
+ if (s->ch_offset != avctx->channels) {
+ av_log(avctx, AV_LOG_ERROR, "Too few blocks in a packet.\n");
+ return AVERROR_INVALIDDATA;
+ }
+
*got_frame_ptr = 1;
return avpkt->size;
--
1.7.10.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel