[FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS

xufuji456 839789740 at qq.com
Fri Mar 3 08:51:25 EET 2023


---
 fftools/ffmpeg.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 743bc0c6b6..0ce9531235 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -569,6 +569,13 @@ static void ffmpeg_cleanup(int ret)
     av_freep(&input_files);
     av_freep(&output_files);
 
+    nb_input_files    = 0;
+    nb_output_files   = 0;
+    nb_filtergraphs   = 0;
+    input_files       = NULL;
+    output_files      = NULL;
+    filtergraphs      = NULL;
+
     uninit_opts();
 
     avformat_network_deinit();
-- 
2.32.0 (Apple Git-132)



More information about the ffmpeg-devel mailing list