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 333baa0..d1fdef2 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;
         }