[FFmpeg-devel] [PATCH] libavformat: not treat 0 as EOF

Nicolas George george at nsup.org
Tue Oct 24 22:44:02 EEST 2017


Le tridi 3 brumaire, an CCXXVI, Jan Ekstrom a écrit :
> You might be very true, but funny enough I just checked the AVIO
> example doc/examples/avio_reading.c, and the read function there does
> not seem to utilize AVERROR_EOF either :) .

The examples are not exempt from mistakes.

> Just for your information, I decided to call people out a bit on the
> IRC channel to see what people would prefer, and it seems like James,
> BtbN and Martin voiced their opinion that they would like a flag that
> would let you enable the 0 != EOF behavior. Additionally, a warning
> would be given out if zero is returned and the flag is unset. Quote
> follows:

> Any opinions?

These people have obviously not thought this through.

As I said, I will try to find time to implement a correct workaround
tomorrow.

Regards,

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


More information about the ffmpeg-devel mailing list