[FFmpeg-cvslog] lavf: don't leak corrupted packets

Andrey Utkin git at videolan.org
Thu Nov 10 03:58:59 CET 2011


ffmpeg | branch: master | Andrey Utkin <andrey.krieger.utkin at gmail.com> | Tue Nov  8 17:24:04 2011 +0200| [055a141e440b90d1406d9e75699c09b8cc1e823b] | committer: Anton Khirnov

lavf: don't leak corrupted packets

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=055a141e440b90d1406d9e75699c09b8cc1e823b
---

 libavformat/utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 309fb97..c2beeae 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;
         }
 



More information about the ffmpeg-cvslog mailing list