Skip to content

Commit b0c3433

Browse files
Cleanbit25nilfm99
authored andcommitted
[bugfix] Print required options hint for vmaf tool correctly
This seems to be a copy and paste bug. Calling "vmaf" with only -r option prints "could not open file: (null)". Instead it should print the correct usage hint.
1 parent 8cc78af commit b0c3433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvmaf/tools/cli_parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ void cli_parse(const int argc, char *const *const argv,
507507
settings->output_fmt = VMAF_OUTPUT_FORMAT_XML;
508508
if (!settings->path_ref)
509509
usage(argv[0], "Reference .y4m or .yuv (-r/--reference) is required");
510-
if (!settings->path_ref)
510+
if (!settings->path_dist)
511511
usage(argv[0], "Distorted .y4m or .yuv (-d/--distorted) is required");
512512
if (settings->use_yuv && !(settings->width && settings->height &&
513513
settings->pix_fmt && settings->bitdepth))

0 commit comments

Comments
 (0)