[FFmpeg-devel] [PATCH 4/5] lavfi: drop the requirement that request_frame returns a frame.

Nicolas George george at nsup.org
Sun Sep 20 19:04:36 CEST 2015


Le primidi 11 fructidor, an CCXXIII, Paul B Mahol a écrit :
> One more thing, the query_formats is very limited for filters that pick one
> pixel format for input and another one for output depending on picked format
> for input. Returning EAGAIN almost always works but there are special
> situations when it does not work. There should be query_formats2 or similar
> which would address such limitations.

The mechanism using EAGAIN is far from perfect, you are right, it is quite
fragile actually. But to enhance it, saying query_formats2 is not enough: it
would be necessary to tell what would go in it and how it would be used.

In other words, the current algorithm is quite good and elegant for the
simple cases, but I have no idea how to change in order to make it work for
complex cases too.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150920/60a80f54/attachment.sig>


More information about the ffmpeg-devel mailing list