Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-10-13 16:26:52 +0300
committerAnton Khirnov <anton@khirnov.net>2022-10-18 14:57:43 +0300
commitd6195c88e232ce936fab1ac36fc296bf42497225 (patch)
tree2ed983ecf63b36ba7a7ff75402a9f5523eb3259e /fftools
parent36ce335d46151b477404caeec38ddbc20c112304 (diff)
fftools/ffmpeg_mux: inline mux_free() into of_close()
mux_free() is no longer called from anywhere else.
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg_mux.c31
1 files changed, 13 insertions, 18 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c
index 2f71e03144..f830e5854b 100644
--- a/fftools/ffmpeg_mux.c
+++ b/fftools/ffmpeg_mux.c
@@ -599,8 +599,20 @@ static void fc_close(AVFormatContext **pfc)
*pfc = NULL;
}
-static void mux_free(Muxer *mux)
+void of_close(OutputFile **pof)
{
+ OutputFile *of = *pof;
+ Muxer *mux;
+
+ if (!of)
+ return;
+ mux = mux_from_of(of);
+
+ thread_stop(mux);
+
+ sq_free(&of->sq_encode);
+ sq_free(&of->sq_mux);
+
for (int i = 0; i < mux->of.nb_streams; i++) {
MuxStream *ms = &mux->streams[i];
AVPacket *pkt;
@@ -618,23 +630,6 @@ static void mux_free(Muxer *mux)
av_packet_free(&mux->sq_pkt);
fc_close(&mux->fc);
-}
-
-void of_close(OutputFile **pof)
-{
- OutputFile *of = *pof;
- Muxer *mux;
-
- if (!of)
- return;
- mux = mux_from_of(of);
-
- thread_stop(mux);
-
- sq_free(&of->sq_encode);
- sq_free(&of->sq_mux);
-
- mux_free(mux_from_of(of));
av_freep(pof);
}