Commit 7a2c380e authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/aviobuf: remove uses of deprecated url_feof()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5403a288
...@@ -555,7 +555,7 @@ int avio_read(AVIOContext *s, unsigned char *buf, int size) ...@@ -555,7 +555,7 @@ int avio_read(AVIOContext *s, unsigned char *buf, int size)
} }
if (size1 == size) { if (size1 == size) {
if (s->error) return s->error; if (s->error) return s->error;
if (url_feof(s)) return AVERROR_EOF; if (avio_feof(s)) return AVERROR_EOF;
} }
return size1 - size; return size1 - size;
} }
...@@ -604,7 +604,7 @@ int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size) ...@@ -604,7 +604,7 @@ int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size)
s->buf_ptr += len; s->buf_ptr += len;
if (!len) { if (!len) {
if (s->error) return s->error; if (s->error) return s->error;
if (url_feof(s)) return AVERROR_EOF; if (avio_feof(s)) return AVERROR_EOF;
} }
return len; return 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