You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
This commit is contained in:
committed by
Stefano Sabatini
parent
e403a97aac
commit
9f9b2ab1b1
@@ -127,7 +127,7 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
TestSourceContext *test = outlink->src->priv;
|
TestSourceContext *test = outlink->src->priv;
|
||||||
AVFilterBufferRef *picref;
|
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;
|
return AVERROR_EOF;
|
||||||
picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,
|
picref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE,
|
||||||
test->w, test->h);
|
test->w, test->h);
|
||||||
|
Reference in New Issue
Block a user