mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
avformat/aviobuf: remove uses of deprecated url_feof()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5403a288a7
commit
7a2c380e93
@ -555,7 +555,7 @@ int avio_read(AVIOContext *s, unsigned char *buf, int size)
|
||||
}
|
||||
if (size1 == size) {
|
||||
if (s->error) return s->error;
|
||||
if (url_feof(s)) return AVERROR_EOF;
|
||||
if (avio_feof(s)) return AVERROR_EOF;
|
||||
}
|
||||
return size1 - size;
|
||||
}
|
||||
@ -604,7 +604,7 @@ int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size)
|
||||
s->buf_ptr += len;
|
||||
if (!len) {
|
||||
if (s->error) return s->error;
|
||||
if (url_feof(s)) return AVERROR_EOF;
|
||||
if (avio_feof(s)) return AVERROR_EOF;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user