[FFmpeg-devel] [PATCH] Yield on AVERROR(EAGAIN).

Nicolas George nicolas.george
Fri Mar 5 17:18:26 CET 2010


Le quintidi 15 vent?se, an CCXVIII, Michael Niedermayer a ?crit?:
> >  From the application's point of view, this device is still blocking, but
> > now, it is also insensible to polling irregularities: if the application is
> > blocked in another device, or spends a little too much time encoding a
> > particularly complex frame, it will not drop any data, just queue it.
> it should return EAGAIN not block ...

I think it should return EAGAIN if AVFMT_FLAG_NONBLOCK was set, and block if
AVFMT_FLAG_NONBLOCK was not set.

You must remember that currently, ffmpeg can not deal with non-blocking
inputs: the main loop would have to be rewritten to be input-driven and not
output-driven.

> anyway, a patch for this is probably welcome

I will try to work on something like that sometime soon.

Regards,

-- 
  Nicolas George
-------------- 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/20100305/a3e31b38/attachment.pgp>



More information about the ffmpeg-devel mailing list