On 07/25/2012 08:42 AM, Anton Khirnov wrote: > The buffer is stored internally, so this prevents it from being unreffed > automatically. > --- > libavfilter/vf_yadif.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c > index c6d78a5..a2b7337 100644 > --- a/libavfilter/vf_yadif.c > +++ b/libavfilter/vf_yadif.c > @@ -221,6 +221,7 @@ static int start_frame(AVFilterLink *link, > AVFilterBufferRef *picref) > yadif->prev = yadif->cur; > yadif->cur = yadif->next; > yadif->next = picref; > + link->cur_buf = NULL; > > if (!yadif->cur) > return 0;
Ok. we might consider later how to factorize since seems a common pattern. -- Luca Barbato Gentoo/linux http://dev.gentoo.org/~lu_zero _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
