[FFmpeg-devel] [PATCH 2/5] lavfi/decimate: remove usage of link->cur_buf.

Stefano Sabatini stefasab at gmail.com
Wed Dec 26 20:39:49 CET 2012


On date Wednesday 2012-12-26 20:33:05 +0100, Clément Bœsch encoded:
> ---
>  libavfilter/vf_decimate.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c
> index 267a435..b81c3ee 100644
> --- a/libavfilter/vf_decimate.c
> +++ b/libavfilter/vf_decimate.c
> @@ -198,7 +198,6 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *cur)
>      } else {
>          avfilter_unref_buffer(decimate->ref);
>          decimate->ref = cur;
> -        inlink->cur_buf = NULL;
>          decimate->drop_count = FFMIN(-1, decimate->drop_count-1);
>  
>          if (ret = ff_filter_frame(outlink, avfilter_ref_buffer(cur, ~AV_PERM_WRITE)) < 0)

LGTM, provided it doesn't leak (it should not, but better to test with
valgrind).
-- 
FFmpeg = Fast & Furious Mean Patchable Erotic Goblin


More information about the ffmpeg-devel mailing list