diff options
author | Mole Shang <[email protected]> | 2023-08-08 10:26:53 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-08 10:26:53 +0800 |
commit | ea686558ff9d0e4a9c4ca07c1a3e79d49e5847e4 (patch) | |
tree | 44a3478798083ce465f8cd617928b21a95a09b66 /src/utils | |
parent | 835352cffe91b137127e506cfcb851bd3c53a8e2 (diff) | |
download | hinata-ea686558ff9d0e4a9c4ca07c1a3e79d49e5847e4.tar.gz hinata-ea686558ff9d0e4a9c4ca07c1a3e79d49e5847e4.tar.bz2 hinata-ea686558ff9d0e4a9c4ca07c1a3e79d49e5847e4.zip |
utils/ffmpeg: close all inputs during cleanup
... so that we can safely remove the file later.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |