diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-14 19:09:43 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-20 23:10:42 +0400 |
commit | 07bad27810cdd7d3171cbd542119aa051646377c (patch) | |
tree | 3bb780df53f6779185ea0fc78ba584a7296105b8 /libavfilter/vf_select.c | |
parent | 533fd5b5b468131cfe164455783c351eb69af657 (diff) |
lavfi: unref AVFilterLink.cur_buf in ff_end_frame().
This reduces code duplication and prevents stale pointers from remaining
on the link.
Diffstat (limited to 'libavfilter/vf_select.c')
-rw-r--r-- | libavfilter/vf_select.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c index 719885e401..91d48f07da 100644 --- a/libavfilter/vf_select.c +++ b/libavfilter/vf_select.c @@ -258,14 +258,12 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir) static void end_frame(AVFilterLink *inlink) { SelectContext *select = inlink->dst->priv; - AVFilterBufferRef *picref = inlink->cur_buf; if (select->select) { if (select->cache_frames) return; ff_end_frame(inlink->dst->outputs[0]); } - avfilter_unref_buffer(picref); } static int request_frame(AVFilterLink *outlink) |