Commit 936a1049 authored by NzSN's avatar NzSN

Disable EOF for EAGAIN

parent 1df78e24
...@@ -565,7 +565,9 @@ static void fill_buffer(AVIOContext *s) ...@@ -565,7 +565,9 @@ static void fill_buffer(AVIOContext *s)
be done without rereading data */ be done without rereading data */
s->eof_reached = 1; s->eof_reached = 1;
} else if (len < 0) { } else if (len < 0) {
s->eof_reached = 1; // To Support NON-BLOCK AVIO
if (len != AVERROR(EAGAIN))
s->eof_reached = 1;
s->error= len; s->error= len;
} else { } else {
s->pos += len; s->pos += len;
......
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