Skip to content

Commit

Permalink
testcard2: use parse_fps to allow interlacing
Browse files Browse the repository at this point in the history
this allows syntax like "59.74i"
  • Loading branch information
MartinPulec committed Jul 24, 2023
1 parent 1579f5f commit 0ce939e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/video_capture/testcard2.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ static bool parse_fmt(struct testcard_state2 *s, char *fmt) {
log_msg(LOG_LEVEL_ERROR, "Missing FPS for testcard\n");
return false;
}
s->desc.fps = strtod(tmp, NULL);
if (errno == ERANGE) {
if (!parse_fps(tmp, &s->desc)) {
log_msg(LOG_LEVEL_ERROR, "Wrong FPS for testcard\n");
return false;
}
Expand Down

0 comments on commit 0ce939e

Please sign in to comment.