From ea686558ff9d0e4a9c4ca07c1a3e79d49e5847e4 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Tue, 8 Aug 2023 10:26:53 +0800 Subject: utils/ffmpeg: close all inputs during cleanup ... so that we can safely remove the file later. --- src/utils/ffmpeg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/utils') diff --git a/src/utils/ffmpeg.c b/src/utils/ffmpeg.c index a5010ee..e4d9e44 100644 --- a/src/utils/ffmpeg.c +++ b/src/utils/ffmpeg.c @@ -190,6 +190,7 @@ int merge_av(const char *videofn, const char *audiofn, const char *outfn) { av_write_trailer(output_format_context); end: avformat_close_input(&input1_format_context); + avformat_close_input(&input2_format_context); /* close output */ if (output_format_context && !(output_format_context->oformat->flags & AVFMT_NOFILE)) -- cgit v1.2.3