diff options
author | Mark Himsley <Mark Himsley mark@mdsh.com> | 2011-10-25 23:34:45 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-10-25 23:38:56 +0200 |
commit | 9f9b2ab1b1efce851394e8ff120fb150fa0efba1 (patch) | |
tree | d9e5a1b870ef25bfcadf11cbf5ea83559804caf4 | |
parent | e403a97aac0cf73c011d578bb83d81e7f266d839 (diff) | |
download | ffmpeg-9f9b2ab1b1efce851394e8ff120fb150fa0efba1.tar.gz |
vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 2 |
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); |