aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-12-12 12:16:42 +0100
committerAnton Khirnov <anton@khirnov.net>2022-07-23 11:53:19 +0200
commit9c2b800203a5a8f3d83f3b8f28e8c50d28186b39 (patch)
treef1dd977e229f7882c74a485eac96d2b52f043167 /fftools/ffmpeg.c
parent35bfcff07f3b5efc8f322d899de136040c2772a7 (diff)
downloadffmpeg-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.c7
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