vcap/testcard: limit frames - fix number (was -1)

This commit is contained in:
Martin Pulec
2025-03-12 16:46:55 +01:00
parent 2a59b6d00f
commit 2d72943438

View File

@@ -706,8 +706,7 @@ static audio_frame *vidcap_testcard_get_audio(struct testcard_state *s)
static struct video_frame *vidcap_testcard_grab(void *arg, struct audio_frame **audio)
{
struct testcard_state *state = arg;
if (state->video_frames + 1 == state->capture_frames) {
if (state->video_frames == state->capture_frames) {
return NULL;
}
time_ns_t curr_time = 0;