[FFmpeg-devel] [PATCH] libavformat: not treat 0 as EOF
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
> Any opinions?
These people have obviously not thought this through.
As I said, I will try to find time to implement a correct workaround
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Digital signature
More information about the ffmpeg-devel