Skip to content

Commit

Permalink
[bugfix] Print required options hint for vmaf tool correctly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Cleanbit25 authored and nilfm99 committed Jul 1, 2024
1 parent 8cc78af commit b0c3433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvmaf/tools/cli_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ void cli_parse(const int argc, char *const *const argv,
settings->output_fmt = VMAF_OUTPUT_FORMAT_XML;
if (!settings->path_ref)
usage(argv[0], "Reference .y4m or .yuv (-r/--reference) is required");
if (!settings->path_ref)
if (!settings->path_dist)
usage(argv[0], "Distorted .y4m or .yuv (-d/--distorted) is required");
if (settings->use_yuv && !(settings->width && settings->height &&
settings->pix_fmt && settings->bitdepth))
Expand Down

0 comments on commit b0c3433

Please sign in to comment.