mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-11 20:05:06 +02:00
ffmpeg: Use av_fifo_freep() to avoid stale pointers
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7f7c494a33
commit
44453c09e4
2
ffmpeg.c
2
ffmpeg.c
@ -538,7 +538,7 @@ static void ffmpeg_cleanup(int ret)
|
|||||||
av_fifo_generic_read(ost->muxing_queue, &pkt, sizeof(pkt), NULL);
|
av_fifo_generic_read(ost->muxing_queue, &pkt, sizeof(pkt), NULL);
|
||||||
av_packet_unref(&pkt);
|
av_packet_unref(&pkt);
|
||||||
}
|
}
|
||||||
av_fifo_free(ost->muxing_queue);
|
av_fifo_freep(&ost->muxing_queue);
|
||||||
|
|
||||||
av_freep(&output_streams[i]);
|
av_freep(&output_streams[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user