[FFmpeg-cvslog] vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()
Mark Himsley
git at videolan.org
Tue Oct 25 23:43:05 CEST 2011
ffmpeg | branch: master | Mark Himsley <Mark Himsley mark at mdsh.com> | Tue Oct 25 23:34:45 2011 +0200| [9f9b2ab1b1efce851394e8ff120fb150fa0efba1] | committer: Stefano Sabatini
vsrc_testsrc: fix off-by-one logic when detecting the EOF time in request_frame()
Signed-off-by: Stefano Sabatini <stefasab at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f9b2ab1b1efce851394e8ff120fb150fa0efba1
---
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 33d2a01..148fb5b 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);
More information about the ffmpeg-cvslog
mailing list