Skip to content

Commit 2d72943

Browse files
committed
vcap/testcard: limit frames - fix number (was -1)
1 parent 2a59b6d commit 2d72943

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/video_capture/testcard.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,7 @@ static audio_frame *vidcap_testcard_get_audio(struct testcard_state *s)
706706
static struct video_frame *vidcap_testcard_grab(void *arg, struct audio_frame **audio)
707707
{
708708
struct testcard_state *state = arg;
709-
710-
if (state->video_frames + 1 == state->capture_frames) {
709+
if (state->video_frames == state->capture_frames) {
711710
return NULL;
712711
}
713712
time_ns_t curr_time = 0;

0 commit comments

Comments
 (0)