diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-12-12 12:16:42 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-23 11:53:19 +0200 |
commit | 9c2b800203a5a8f3d83f3b8f28e8c50d28186b39 (patch) | |
tree | f1dd977e229f7882c74a485eac96d2b52f043167 /fftools/ffmpeg.c | |
parent | 35bfcff07f3b5efc8f322d899de136040c2772a7 (diff) | |
download | ffmpeg-9c2b800203a5a8f3d83f3b8f28e8c50d28186b39.tar.gz |
fftools/ffmpeg: move the mux queue into muxer private data
The muxing queue currently lives in OutputStream, which is a very large
struct storing the state for both encoding and muxing. The muxing queue
is only used by the code in ffmpeg_mux, so it makes sense to restrict it
to that file.
This makes the first step towards reducing the scope of OutputStream.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 71bd267ff5..3c859fca3a 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -591,13 +591,6 @@ static void ffmpeg_cleanup(int ret) avcodec_free_context(&ost->enc_ctx); avcodec_parameters_free(&ost->ref_par); - if (ost->muxing_queue) { - AVPacket *pkt; - while (av_fifo_read(ost->muxing_queue, &pkt, 1) >= 0) - av_packet_free(&pkt); - av_fifo_freep2(&ost->muxing_queue); - } - av_freep(&output_streams[i]); } #if HAVE_THREADS |