]> git.sesse.net Git - ffmpeg/commitdiff
fix memleak in packet corrupt dropping code
authorChris Kennedy <bitbytebit@gmail.com>
Tue, 18 Oct 2011 10:00:48 +0000 (12:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Oct 2011 10:00:48 +0000 (12:00 +0200)
libavformat/utils.c

index 333baa02903117719036ad7841dc2c4328d94550..d1fdef29c3850498e4edb3f7205f5bf9e77736b0 100644 (file)
@@ -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;
         }