diff --git a/libavformat/smacker.c b/libavformat/smacker.c index faf85a5261..6a81a48811 100644 --- a/libavformat/smacker.c +++ b/libavformat/smacker.c @@ -298,7 +298,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt) uint8_t *tmpbuf; size = avio_rl32(s->pb) - 4; - if(size + 4L > frame_size) + if(size + 4LL > frame_size) return AVERROR_INVALIDDATA; frame_size -= size; frame_size -= 4;