The branch, release/7.1 has been updated
via baee5f5e2751b61572abe23a8f8a0042d27c89e6 (commit)
from 73d003ae785bad81fe8c82b19152369054c6d2e6 (commit)
- Log -----------------------------------------------------------------
commit baee5f5e2751b61572abe23a8f8a0042d27c89e6
Author: James Almer <[email protected]>
AuthorDate: Fri Jan 17 00:05:31 2025 -0300
Commit: James Almer <[email protected]>
CommitDate: Wed Nov 19 19:56:49 2025 -0300
avformat/avformat: also clear FFFormatContext packet queue when closing a
muxer
packet_buffer is used in mux.c, and if a muxing process fails at a point
where
packets remained in said queue, they will leak.
Fixes ticket #11419
Signed-off-by: James Almer <[email protected]>
(cherry picked from commit c08d300481b8ebb846cd43a473988fdbc6793d1b)
diff --git a/libavformat/avformat.c b/libavformat/avformat.c
index 06dcde0565..4f93887148 100644
--- a/libavformat/avformat.c
+++ b/libavformat/avformat.c
@@ -184,6 +184,7 @@ void avformat_free_context(AVFormatContext *s)
av_dict_free(&si->id3v2_meta);
av_packet_free(&si->pkt);
av_packet_free(&si->parse_pkt);
+ avpriv_packet_list_free(&si->packet_buffer);
av_freep(&s->streams);
av_freep(&s->stream_groups);
ff_flush_packet_queue(s);
-----------------------------------------------------------------------
Summary of changes:
libavformat/avformat.c | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]