Skip to content

Commit

Permalink
Repro issue 1367
Browse files Browse the repository at this point in the history
  • Loading branch information
nilfm99 committed Jun 27, 2024
1 parent 8cc78af commit c4b87c6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions libvmaf/tools/vmaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,22 @@ int main(int argc, char *argv[])
fprintf(stderr, "\nproblem reading pictures\n");
break;
}
for (unsigned i = 0; i < c.model_cnt; i++)
{
double vmaf_score;
err = vmaf_score_at_index(vmaf, model[i], &vmaf_score, picture_index);
if (err)
{
fprintf(stderr, "frame %d: problem generating VMAF score\n", picture_index + 1);
return err;
}
if (istty && (!c.quiet || !c.output_path))
{
fprintf(stderr, "%s: %f\n",
c.model_config[i].version ? c.model_config[i].version : c.model_config[i].path,
vmaf_score);
}
}
}
if (istty && !c.quiet)
fprintf(stderr, "\n");
Expand Down

0 comments on commit c4b87c6

Please sign in to comment.