diff --git a/libavcodec/tiertexseqv.c b/libavcodec/tiertexseqv.c index 9a7eb70ee8..c3fee8f0a0 100644 --- a/libavcodec/tiertexseqv.c +++ b/libavcodec/tiertexseqv.c @@ -72,6 +72,8 @@ static const unsigned char *seq_unpack_rle_block(const unsigned char *src, dst += len; dst_size -= len; } + if (dst_size > 0) + return NULL; return src; }