Browse Source

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

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
tags/n0.9
Mark Himsley Stefano Sabatini 13 years ago
parent
commit
9f9b2ab1b1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vsrc_testsrc.c

+ 1
- 1
libavfilter/vsrc_testsrc.c View File

@@ -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);


Loading…
Cancel
Save