History

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

James Almer committed 1 year ago

Commit c08d3001 parent 4f3c9f21 file · +1 −0Browse files

Unified · Split

libavformat/avformat.c+1−0
@@ -190,6 +190,7 @@ void avformat_free_context(AVFormatContext *s) · 189 unmodified lines
190190 av_dict_free(&si->id3v2_meta);
191191 av_packet_free(&si->pkt);
192192 av_packet_free(&si->parse_pkt);
193+ avpriv_packet_list_free(&si->packet_buffer);
193194 av_freep(&s->streams);
194195 av_freep(&s->stream_groups);
195196 if (s->iformat)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t