mirror of https://git.ffmpeg.org/ffmpeg.git
ffprobe: Fix memory leak
This packet was not necessarily unreferenced. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
d70fece560
commit
d5a6b390ce
|
@ -2429,9 +2429,7 @@ static int read_interval_packets(WriterContext *w, InputFile *ifile,
|
||||||
}
|
}
|
||||||
av_packet_unref(&pkt);
|
av_packet_unref(&pkt);
|
||||||
}
|
}
|
||||||
av_init_packet(&pkt);
|
av_packet_unref(&pkt);
|
||||||
pkt.data = NULL;
|
|
||||||
pkt.size = 0;
|
|
||||||
//Flush remaining frames that are cached in the decoder
|
//Flush remaining frames that are cached in the decoder
|
||||||
for (i = 0; i < fmt_ctx->nb_streams; i++) {
|
for (i = 0; i < fmt_ctx->nb_streams; i++) {
|
||||||
pkt.stream_index = i;
|
pkt.stream_index = i;
|
||||||
|
|
Loading…
Reference in New Issue