diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-15 11:00:49 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-22 09:14:05 +0200 |
commit | 80e4ed279b3abe9f5356e2b56255b2aa64527345 (patch) | |
tree | 96c431e1484295c000471d6a133b62eece76bd48 | |
parent | 785fa50f0b33bdbafebce49fec4df62f0c81eed4 (diff) | |
download | ffmpeg-80e4ed279b3abe9f5356e2b56255b2aa64527345.tar.gz |
vf_select: avoid an unnecessary avfilter_ref_buffer().
-rw-r--r-- | libavfilter/vf_select.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c index d4cfbe9ceb..b4a424e1d2 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; } |