Commit fc4605a0 authored by rbultje's avatar rbultje

Add handling of EAGAIN at packet boundaries. See "[PATCH] RTSP-MS 14/15:

ASF packet parsing" thread for discussion / reasoning.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19509 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 33a97af4
......@@ -609,6 +609,14 @@ static int ff_asf_get_packet(AVFormatContext *s, ByteIOContext *pb)
}
if (c != 0x82) {
/**
* This code allows handling of -EAGAIN at packet boundaries (i.e.
* if the packet sync code above triggers -EAGAIN). This does not
* imply complete -EAGAIN handling support at random positions in
* the stream.
*/
if (url_ferror(pb) == AVERROR(EAGAIN))
return AVERROR(EAGAIN);
if (!url_feof(pb))
av_log(s, AV_LOG_ERROR, "ff asf bad header %x at:%"PRId64"\n", c, url_ftell(pb));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment