I figured out that the replacement for using URLProtocol directly is
AVIOContext in recent FFmpeg versions. Now I'm wondering if it's
possible to return EAGAIN in AVIOContext::read_frame() so that this is
passed on to av_read_frame() without losing any data.
It looks like any non-positive return value from read_packet causes the
eof_reached flag to be set in AVIOContext. I tried clearing it and
continuing, but I lost the frame in which the EAGAIN occured. Is there
support for EAGAIN in read_frame()? I assumed one could simply return
AVERROR(EAGAIN) to signal it, but that's clearly not enough. :(
Thanks in advance for any help.
-hr
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user