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
190 av_dict_free(&si->id3v2_meta);190 av_dict_free(&si->id3v2_meta);
191 av_packet_free(&si->pkt);191 av_packet_free(&si->pkt);
192 av_packet_free(&si->parse_pkt);192 av_packet_free(&si->parse_pkt);
193 avpriv_packet_list_free(&si->packet_buffer);
193 av_freep(&s->streams);194 av_freep(&s->streams);
194 av_freep(&s->stream_groups);195 av_freep(&s->stream_groups);
195 if (s->iformat)196 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