[FFmpeg-devel] [PATCH 7/8] ffmdec: don't return AVERROR(EAGAIN) from ffm_is_avail_data

Michael Niedermayer michaelni at gmx.at
Mon Mar 9 03:56:02 CET 2015


On Mon, Mar 09, 2015 at 12:05:01AM +0100, Andreas Cadhalpun wrote:
> Hi,
> 
> if AVERROR(EAGAIN) is returned from ffm_is_avail_data it always
> causes an infinite EAGAIN loop.

it should only loop until more data is written into the ffm file
(this of course is not guranteed to ever happen)

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Rewriting code that is poorly written but fully understood is good.
Rewriting code that one doesnt understand is a sign that one is less smart
then the original author, trying to rewrite it will not make it better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150309/c9100d46/attachment.asc>


More information about the ffmpeg-devel mailing list