From 20f59bfc6be330ff5c97a9b5214d4c85d127c52f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 27 Sep 2025 02:19:33 +0200 Subject: [PATCH] fftools/ffmpeg: use enum VideoSyncMethod instead of int MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow --- fftools/ffmpeg.h | 2 +- fftools/ffmpeg_opt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index c479a0351d..63da1d14df 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -771,7 +771,7 @@ int check_avoptions_used(const AVDictionary *opts, const AVDictionary *opts_used int assert_file_overwrite(const char *filename); int find_codec(void *logctx, const char *name, enum AVMediaType type, int encoder, const AVCodec **codec); -int parse_and_set_vsync(const char *arg, int *vsync_var, int file_idx, int st_idx, int is_global); +int parse_and_set_vsync(const char *arg, enum VideoSyncMethod *vsync_var, int file_idx, int st_idx, int is_global); int filtergraph_is_simple(const FilterGraph *fg); int fg_create_simple(FilterGraph **pfg, diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 926a8bda00..e2fdfaa821 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -295,7 +295,7 @@ int view_specifier_parse(const char **pspec, ViewSpecifier *vs) return 0; } -int parse_and_set_vsync(const char *arg, int *vsync_var, int file_idx, int st_idx, int is_global) +int parse_and_set_vsync(const char *arg, enum VideoSyncMethod *vsync_var, int file_idx, int st_idx, int is_global) { if (!av_strcasecmp(arg, "cfr")) *vsync_var = VSYNC_CFR; else if (!av_strcasecmp(arg, "vfr")) *vsync_var = VSYNC_VFR;