Commit 9f9b2ab1 authored by Mark Himsley's avatar Mark Himsley Committed by Stefano Sabatini

vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()

Signed-off-by: 's avatarStefano Sabatini <stefasab@gmail.com>
parent e403a97a
......@@ -127,7 +127,7 @@ static int request_frame(AVFilterLink *outlink)
TestSourceContext *test = outlink->src->priv;
AVFilterBufferRef *picref;
if (test->max_pts >= 0 && test->pts > test->max_pts)
if (test->max_pts >= 0 && test->pts >= test->max_pts)
return AVERROR_EOF;
picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,
test->w, test->h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment