[FFmpeg-cvslog] r26318 - trunk/libavformat/aviobuf.c

Martin Storsjö martin
Wed Jan 12 10:54:03 CET 2011

On Wed, 12 Jan 2011, mstorsjo wrote:

> Author: mstorsjo
> Date: Wed Jan 12 08:06:27 2011
> New Revision: 26318
> Log:
> aviobuf: Retry if the read/write function returns AVERROR(EAGAIN)

This seems to have broken rtpdec_asf, where the chained asf demuxer is 
supposed to break and return cleanly on AVERROR(EAGAIN), which now is 
swallowed in the ByteIOContext layer.

Is there any better error code that could be used in rtpdec_asf/asfdec for 
indicating that there is no more data to return at the moment, but the 
stream isn't finished yet.

A crude patch which makes rtpdec_asf work again is attached - what is the 
best error code to use for this condition? Or should we add a new one, 
AVERROR_NOMOREDATA, which is kind of like EOF, but only means "end of what 
we've got currently"?

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asfdec_egain.patch
Type: text/x-diff
Size: 946 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20110112/4a211829/attachment-0001.patch>

More information about the ffmpeg-cvslog mailing list