From 4cef8dd5103085af6b144322ca149ee8b0d66c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E7=81=BF=E8=BE=89?= <122565648@qq.com> Date: Sun, 22 Mar 2020 14:43:31 +0800 Subject: [PATCH] Add FFmpeg log --- library/src/main/cpp/ffmpeg/ffmpeg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/src/main/cpp/ffmpeg/ffmpeg.c b/library/src/main/cpp/ffmpeg/ffmpeg.c index 752fc90..536169d 100644 --- a/library/src/main/cpp/ffmpeg/ffmpeg.c +++ b/library/src/main/cpp/ffmpeg/ffmpeg.c @@ -4879,6 +4879,12 @@ void ffmpeg_cancel() int ffmpeg_exec(int argc, char **argv) { + if (use_log_report) { + av_log_set_callback(ffp_log_callback_report); + } else { + av_log_set_callback(ffp_log_callback_brief); + } + int i, ret; BenchmarkTimeStamps ti;