diff options
author | James Almer <jamrial@gmail.com> | 2014-08-07 17:12:41 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-08 00:48:38 +0200 |
commit | d34ec64a22907173c13e687b815d94618d2dc85b (patch) | |
tree | d53c26525699660773d9457d65ca980c21823351 /libavformat/mpeg.c | |
parent | 5c3c67126feb046e25359096225507bf6dfe7b27 (diff) | |
download | ffmpeg-d34ec64a22907173c13e687b815d94618d2dc85b.tar.gz |
replace calls to url_feof() with avio_feof()
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index c53bab3e3c..056db2ebc2 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -168,7 +168,7 @@ static int find_next_start_code(AVIOContext *pb, int *size_ptr, state = *header_state; n = *size_ptr; while (n > 0) { - if (url_feof(pb)) + if (avio_feof(pb)) break; v = avio_r8(pb); n--; @@ -246,7 +246,7 @@ redo: startcode = find_next_start_code(s->pb, &size, &m->header_state); last_sync = avio_tell(s->pb); if (startcode < 0) { - if (url_feof(s->pb)) + if (avio_feof(s->pb)) return AVERROR_EOF; // FIXME we should remember header_state return AVERROR(EAGAIN); @@ -702,7 +702,7 @@ static int vobsub_read_header(AVFormatContext *s) } av_bprint_init(&header, 0, AV_BPRINT_SIZE_UNLIMITED); - while (!url_feof(s->pb)) { + while (!avio_feof(s->pb)) { char line[MAX_LINE_SIZE]; int len = ff_get_line(s->pb, line, sizeof(line)); |