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
Unified · Split
| @@ -190,6 +190,7 @@ void avformat_free_context(AVFormatContext *s) · 189 unmodified lines | ||
| 190 | 190 | av_dict_free(&si->id3v2_meta); |
| 191 | 191 | av_packet_free(&si->pkt); |
| 192 | 192 | av_packet_free(&si->parse_pkt); |
| 193 | + avpriv_packet_list_free(&si->packet_buffer); | |
| 193 | 194 | av_freep(&s->streams); |
| 194 | 195 | av_freep(&s->stream_groups); |
| 195 | 196 | if (s->iformat) |