Skip to content

Commit

Permalink
ffprobe: fix include and options
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu committed Sep 20, 2024
1 parent 79d9f6f commit d6887dc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions debian/patches/0075-ffprobe-add-vt-info.patch
Original file line number Diff line number Diff line change
Expand Up @@ -357,3 +357,28 @@ 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,10 @@
#include "opt_common.h"

#include "libavutil/thread.h"
+#ifdef CONFIG_VIDEOTOOLBOX
+ #include "opt_vtinfo.h"
+#endif
+#include "opt_vtinfo.h"

#if !HAVE_THREADS
# ifdef pthread_mutex_lock
@@ -4587,6 +4591,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, },
};

0 comments on commit d6887dc

Please sign in to comment.