MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / opt_vsync

Function opt_vsync

ffmpeg-single-cmd/src/main/cpp/ffmpeg_opt.c:3000–3010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2998}
2999
3000static int opt_vsync(void *optctx, const char *opt, const char *arg)
3001{
3002 if (!av_strcasecmp(arg, "cfr")) video_sync_method = VSYNC_CFR;
3003 else if (!av_strcasecmp(arg, "vfr")) video_sync_method = VSYNC_VFR;
3004 else if (!av_strcasecmp(arg, "passthrough")) video_sync_method = VSYNC_PASSTHROUGH;
3005 else if (!av_strcasecmp(arg, "drop")) video_sync_method = VSYNC_DROP;
3006
3007 if (video_sync_method == VSYNC_AUTO)
3008 video_sync_method = parse_number_or_die("vsync", arg, OPT_INT, VSYNC_AUTO, VSYNC_VFR);
3009 return 0;
3010}
3011
3012static int opt_timecode(void *optctx, const char *opt, const char *arg)
3013{

Callers

nothing calls this directly

Calls 1

parse_number_or_dieFunction · 0.85

Tested by

no test coverage detected