diff options
author | Andrey Utkin <andrey.krieger.utkin@gmail.com> | 2011-11-08 17:24:04 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-11-09 07:30:43 +0100 |
commit | 055a141e440b90d1406d9e75699c09b8cc1e823b (patch) | |
tree | 8a0441579d46802d2eceb7c5d2f755a0ad430727 /libavformat | |
parent | f38f3b88a5a74d0573dc299a512a87f6d579323b (diff) | |
download | ffmpeg-055a141e440b90d1406d9e75699c09b8cc1e823b.tar.gz |
lavf: don't leak corrupted packets
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |