Commit 055a141e authored by Andrey Utkin's avatar Andrey Utkin Committed by Anton Khirnov

lavf: don't leak corrupted packets

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent f38f3b88
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment