aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-28 21:53:56 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-28 21:58:39 +0100
commitf7f6f281dd8e2b2e71ca79b397826e08c2d32033 (patch)
tree4406411a05d9803eda5d04863f01a7a534a90305
parentc262e8cff63376be80427e923e4361c8b150f4af (diff)
downloadffmpeg-f7f6f281dd8e2b2e71ca79b397826e08c2d32033.tar.gz
vsrc_testsrc: switch to filter_frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vsrc_testsrc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 6ba55a7634..8642e1b107 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -170,7 +170,6 @@ static int request_frame(AVFilterLink *outlink)
{
TestSourceContext *test = outlink->src->priv;
AVFilterBufferRef *outpicref;
- int ret = 0;
if (test->duration >= 0 &&
av_rescale_q(test->pts, test->time_base, AV_TIME_BASE_Q) >= test->duration)
@@ -203,12 +202,7 @@ static int request_frame(AVFilterLink *outlink)
test->pts++;
test->nb_frame++;
- if ((ret = ff_start_frame(outlink, outpicref)) < 0 ||
- (ret = ff_draw_slice(outlink, 0, test->h, 1)) < 0 ||
- (ret = ff_end_frame(outlink)) < 0)
- return ret;
-
- return 0;
+ return ff_filter_frame(outlink, outpicref);
}
#if CONFIG_COLOR_FILTER