summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2015-08-29 17:42:56 -0400
committerBradley Sepos <[email protected]>2015-09-10 15:23:32 -0400
commitcbb6fbdbdf2fec70a4d06bf8742c95dfb060f2ed (patch)
treee5caef4e2ee9d40605dd2c1aadbe258d33268cd4 /test/test.c
parent0f20fa95febec5a9563a9a1a34d7e0741bcaf683 (diff)
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.
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c9
1 files changed, 5 insertions, 4 deletions
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"
" <L:R:T:B:SB:MP:FD> (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;
}