[FFmpeg-cvslog] vf_select: avoid an unnecessary avfilter_ref_buffer().

Anton Khirnov git at videolan.org
Sun Jul 22 23:56:50 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Jul 15 11:00:49 2012 +0200| [80e4ed279b3abe9f5356e2b56255b2aa64527345] | committer: Anton Khirnov

vf_select: avoid an unnecessary avfilter_ref_buffer().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80e4ed279b3abe9f5356e2b56255b2aa64527345
---

 libavfilter/vf_select.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c
index d4cfbe9..b4a424e 100644
--- a/libavfilter/vf_select.c
+++ b/libavfilter/vf_select.c
@@ -282,11 +282,10 @@ static int request_frame(AVFilterLink *outlink)
         int ret;
 
         av_fifo_generic_read(select->pending_frames, &picref, sizeof(picref), NULL);
-        if ((ret = ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0))) < 0 ||
+        if ((ret = ff_start_frame(outlink, picref)) < 0 ||
             (ret = ff_draw_slice(outlink, 0, outlink->h, 1)) < 0 ||
             (ret = ff_end_frame(outlink)) < 0);
 
-        avfilter_unref_buffer(picref);
         return ret;
     }
 



More information about the ffmpeg-cvslog mailing list