From a1b818e644eeb29279c8a2c18b22732b273e883c Mon Sep 17 00:00:00 2001 From: xufulong <839789740@qq.com> Date: Tue, 16 Jun 2020 00:40:08 +0800 Subject: [PATCH] move jump_buf to header file move jump_buf to header file --- app/src/main/cpp/ffmpeg/cmdutils.c | 4 ---- app/src/main/cpp/ffmpeg/cmdutils.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/ffmpeg/cmdutils.c b/app/src/main/cpp/ffmpeg/cmdutils.c index 3f83e54..9fae4ea 100644 --- a/app/src/main/cpp/ffmpeg/cmdutils.c +++ b/app/src/main/cpp/ffmpeg/cmdutils.c @@ -64,10 +64,6 @@ #include #endif -#include - -extern jmp_buf jump_buf; - static int init_report(const char *env); AVDictionary *sws_dict; diff --git a/app/src/main/cpp/ffmpeg/cmdutils.h b/app/src/main/cpp/ffmpeg/cmdutils.h index 6e2e0a2..2640d09 100644 --- a/app/src/main/cpp/ffmpeg/cmdutils.h +++ b/app/src/main/cpp/ffmpeg/cmdutils.h @@ -34,6 +34,10 @@ #undef main /* We don't want SDL to override our main() */ #endif +#include + +extern jmp_buf jump_buf; + /** * program name, defined by the program for show_version(). */