From 44cd30baef0f4eb336ec54d3840b1e77c4a11550 Mon Sep 17 00:00:00 2001 From: gnattu Date: Fri, 20 Sep 2024 15:38:27 +0800 Subject: [PATCH] ffprobe: fix include and options --- debian/patches/0075-ffprobe-add-vt-info.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/debian/patches/0075-ffprobe-add-vt-info.patch b/debian/patches/0075-ffprobe-add-vt-info.patch index b75f4d26d77..9b8535f404b 100644 --- a/debian/patches/0075-ffprobe-add-vt-info.patch +++ b/debian/patches/0075-ffprobe-add-vt-info.patch @@ -357,3 +357,27 @@ Index: FFmpeg/fftools/opt_vtinfo.m + } + return 0; +} +Index: FFmpeg/fftools/ffprobe.c +=================================================================== +--- FFmpeg.orig/fftools/ffprobe.c ++++ FFmpeg/fftools/ffprobe.c +@@ -69,6 +69,9 @@ + #include "opt_common.h" + + #include "libavutil/thread.h" ++#ifdef CONFIG_VIDEOTOOLBOX ++ #include "opt_vtinfo.h" ++#endif + + #if !HAVE_THREADS + # ifdef pthread_mutex_lock +@@ -4587,6 +4590,9 @@ static const OptionDef real_options[] = + { "print_filename", OPT_TYPE_FUNC, OPT_FUNC_ARG, {.func_arg = opt_print_filename}, "override the printed input filename", "print_file"}, + { "find_stream_info", OPT_TYPE_BOOL, OPT_INPUT | OPT_EXPERT, { &find_stream_info }, + "read and decode the streams to fill missing information with heuristics" }, ++#ifdef CONFIG_VIDEOTOOLBOX ++ { "show_vt_info", OPT_TYPE_FUNC, OPT_EXIT, { .func_arg = show_vt_info }, "show VideoToolbox info" }, ++#endif + { NULL, }, + }; +