mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
avformat/mpegenc: Fix leak in case trailer is never written
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 54987a37daccbeec28d3f2ec58ff4d5656acd9b1)
This commit is contained in:
parent
0685bd0245
commit
d711b56985
@ -1262,6 +1262,11 @@ static void mpeg_mux_deinit(AVFormatContext *ctx)
|
||||
StreamInfo *stream = ctx->streams[i]->priv_data;
|
||||
if (!stream)
|
||||
continue;
|
||||
for (PacketDesc *pkt = stream->predecode_packet; pkt; ) {
|
||||
PacketDesc *tmp = pkt->next;
|
||||
av_free(pkt);
|
||||
pkt = tmp;
|
||||
}
|
||||
av_fifo_freep(&stream->fifo);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user