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:
parent
f38f3b88a5
commit
055a141e44
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user