From cbb6fbdbdf2fec70a4d06bf8742c95dfb060f2ed Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Sat, 29 Aug 2015 17:42:56 -0400 Subject: CLI: Fix frame rate not being set without specifying --cfr/--pfr, and make --pfr the default. This behavior matches the GUIs. The CLI help previously stated --cfr was the default when -r is set, but it didn't work. --- test/test.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/test.c') diff --git a/test/test.c b/test/test.c index 7aa86fb3a..1efaa17b1 100644 --- a/test/test.c +++ b/test/test.c @@ -1055,7 +1055,7 @@ static void ShowHelp() " with the -r flag but won't change the source\n" " timing if it's below that rate.\n" " If none of these flags are given, the default\n" -" is --cfr when -r is given and --vfr otherwise\n" +" is --pfr when -r is given and --vfr otherwise\n" "\n" "### Audio Options---------------------------------------------------------\n\n" " --audio-lang-list Specifiy a comma separated list of audio\n" @@ -1274,7 +1274,8 @@ if (hb_qsv_available()) " -9, --detelecine Detelecine (ivtc) video with pullup filter\n" " Note: this filter drops duplicate frames to\n" " restore the pre-telecine framerate, unless you\n" -" specify a constant framerate (--rate 29.97)\n" +" specify a constant framerate\n" +" (--rate 29.97 --cfr)\n" " (default 1:1:4:4:0:0:-1)\n" " --no-detelecine Disable preset detelecine filter\n" " -8, --hqdn3d Denoise video with hqdn3d filter\n" @@ -2324,9 +2325,9 @@ static int ParseOptions( int argc, char ** argv ) case 'r': { vrate = strdup(optarg); - if (!cfr) + if ( cfr != 2 ) { - cfr = 1; + cfr = 2; } break; } -- cgit v1.2.3