[FFmpeg-cvslog] fix memleak in packet corrupt dropping code

Chris Kennedy git at videolan.org
Tue Oct 18 14:17:29 CEST 2011


ffmpeg | branch: master | Chris Kennedy <bitbytebit at gmail.com> | Tue Oct 18 12:00:48 2011 +0200| [c108a4aa1e30d9526308dc8d0869c5fe7198eb8e] | committer: Michael Niedermayer

fix memleak in packet corrupt dropping code

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

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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 333baa0..d1fdef2 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -756,6 +756,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