[FFmpeg-devel] [PATCH 2/5] lavfi/decimate: remove usage of link->cur_buf.
Clément Bœsch
ubitux at gmail.com
Wed Dec 26 21:34:38 CET 2012
On Wed, Dec 26, 2012 at 08:39:49PM +0100, Stefano Sabatini wrote:
> 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).
Doesn't seem to leak, applied.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121226/db9e8185/attachment.asc>
More information about the ffmpeg-devel
mailing list