summaryrefslogtreecommitdiff
path: root/libavfilter/vsrc_testsrc.c
diff options
context:
space:
mode:
authorMark Himsley <Mark Himsley mark@mdsh.com>2011-10-25 23:34:45 +0200
committerStefano Sabatini <stefasab@gmail.com>2011-10-25 23:38:56 +0200
commit9f9b2ab1b1efce851394e8ff120fb150fa0efba1 (patch)
treed9e5a1b870ef25bfcadf11cbf5ea83559804caf4 /libavfilter/vsrc_testsrc.c
parente403a97aac0cf73c011d578bb83d81e7f266d839 (diff)
vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_testsrc.c')
-rw-r--r--libavfilter/vsrc_testsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 33d2a0196a..148fb5b295 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -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);