[FFmpeg-cvslog] vsrc_testsrc: avoid an unnecessary avfilter_ref_buffer().
Anton Khirnov
git at videolan.org
Sat Jul 21 22:32:08 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Jul 15 11:12:10 2012 +0200| [533fd5b5b468131cfe164455783c351eb69af657] | committer: Anton Khirnov
vsrc_testsrc: avoid an unnecessary avfilter_ref_buffer().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=533fd5b5b468131cfe164455783c351eb69af657
---
libavfilter/vsrc_testsrc.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index c8e1aa6..f2bbbac 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;
}
More information about the ffmpeg-cvslog
mailing list