mirror of https://git.ffmpeg.org/ffmpeg.git
fix memleak in packet corrupt dropping code
This commit is contained in:
parent
c4e02d3432
commit
c108a4aa1e
|
@ -756,6 +756,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