[FFmpeg-devel] [PATCH] yadif port to libavfitler

Michael Niedermayer michaelni
Thu Sep 9 22:39:07 CEST 2010


On Thu, Sep 09, 2010 at 12:21:10PM -0700, Baptiste Coudurier wrote:
[...]
> > +static int poll_frame(AVFilterLink *link)
> > +{
> > +    YADIFContext *yadif = link->src->priv;
> > +    int val = avfilter_poll_frame(link->src->inputs[0]);
> > +    if (val > 1 || (yadif->cur && (yadif->next || val > 0)))
> > +        return 1;
> > +    return 0;
>
> There is one more important problem that must addressed in the  
> libavfilter framework. Yadif cannot know if the previous filter has hit  
> EOF, and should output the last buffered frame.
>
> Currently the filter looses the last frame.

poll/request of the previous filter could return EOF and yadif then could
return its last buffered frame

but this is a bit off topic as we are moving yadif from mplayer to libavfilter
and this would be a feature/bugfix unrelated to the move i think



[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100909/6b92d8d4/attachment.pgp>



More information about the ffmpeg-devel mailing list