1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

lavf: don't leak corrupted packets

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Andrey Utkin 2011-11-08 17:24:04 +02:00 committed by Anton Khirnov
parent f38f3b88a5
commit 055a141e44

View File

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