From 055a141e440b90d1406d9e75699c09b8cc1e823b Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Tue, 8 Nov 2011 17:24:04 +0200 Subject: [PATCH] lavf: don't leak corrupted packets Signed-off-by: Anton Khirnov --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 309fb97a0d..c2beeaee7a 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -732,6 +732,7 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt) av_log(s, AV_LOG_WARNING, "Dropped corrupted packet (stream = %d)\n", pkt->stream_index); + av_free_packet(pkt); continue; }