From a93bd3d42049e00faa288b20fe60692f730903af Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Thu, 18 Jun 2020 00:25:19 +0800 Subject: [PATCH] setjump of ffprobe setjump of ffprobe --- app/src/main/cpp/ffmpeg/ffprobe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/cpp/ffmpeg/ffprobe.c b/app/src/main/cpp/ffmpeg/ffprobe.c index b41d3ef..ef71148 100644 --- a/app/src/main/cpp/ffmpeg/ffprobe.c +++ b/app/src/main/cpp/ffmpeg/ffprobe.c @@ -3649,6 +3649,11 @@ char* ffprobe_run(int argc, char **argv) } memset(print_buffer, '\0', (size_t) buffer_size); + if (setjmp(jump_buf)) { + ret = 1; + goto end; + } + init_dynload(); #if HAVE_THREADS