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; }