aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-12-04 14:53:58 +0100
committerAnton Khirnov <anton@khirnov.net>2021-12-07 11:23:45 +0100
commit011114f3e1593a2397871632937a2c23a1402efe (patch)
tree0b0b4b1e0ddd77eb0be8a762ecaf7e0293d8b59f /fftools/ffmpeg.h
parentbb6f591c4938b98b748e43625a54015486a6ed94 (diff)
downloadffmpeg-011114f3e1593a2397871632937a2c23a1402efe.tar.gz
ffmpeg: change vsync value to an enum
Stop explicitly defining VSCFR and DROP values, which were never documented.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index cc7ba9bdca..83e37cbed7 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -47,12 +47,14 @@
#include "libswresample/swresample.h"
-#define VSYNC_AUTO -1
-#define VSYNC_PASSTHROUGH 0
-#define VSYNC_CFR 1
-#define VSYNC_VFR 2
-#define VSYNC_VSCFR 0xfe
-#define VSYNC_DROP 0xff
+enum VideoSyncMethod {
+ VSYNC_AUTO = -1,
+ VSYNC_PASSTHROUGH,
+ VSYNC_CFR,
+ VSYNC_VFR,
+ VSYNC_VSCFR,
+ VSYNC_DROP,
+};
#define MAX_STREAMS 1024 /* arbitrary sanity check value */
@@ -605,7 +607,7 @@ extern float dts_error_threshold;
extern int audio_volume;
extern int audio_sync_method;
-extern int video_sync_method;
+extern enum VideoSyncMethod video_sync_method;
extern float frame_drop_threshold;
extern int do_benchmark;
extern int do_benchmark_all;