forked from FFmpeg/FFmpeg
lavf: don't leak corrupted packets
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
f38f3b88a5
commit
055a141e44
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue