aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-15 11:12:10 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-20 21:09:57 +0200
commit533fd5b5b468131cfe164455783c351eb69af657 (patch)
tree5cab58b7629f30cbbc0dfef7c637e75b08fe1c4e /libavfilter
parent5b50ae94e66547b25fc010d7e4bb1de5788a459c (diff)
downloadffmpeg-533fd5b5b468131cfe164455783c351eb69af657.tar.gz
vsrc_testsrc: avoid an unnecessary avfilter_ref_buffer().
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vsrc_testsrc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index c8e1aa61aa..f2bbbac0e6 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -143,10 +143,9 @@ static int request_frame(AVFilterLink *outlink)
test->nb_frame++;
test->fill_picture_fn(outlink->src, picref);
- ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
- ff_draw_slice(outlink, 0, picref->video->h, 1);
+ ff_start_frame(outlink, picref);
+ ff_draw_slice(outlink, 0, test->h, 1);
ff_end_frame(outlink);
- avfilter_unref_buffer(picref);
return 0;
}