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/asfdec.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/asfdec.c')
-rw-r--r-- | libavformat/asfdec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 978b9562a1..5fc293e136 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -785,7 +785,7 @@ static int asf_read_header(AVFormatContext *s) continue; } else if (!ff_guidcmp(&g, &ff_asf_marker_header)) { asf_read_marker(s, gsize); - } else if (url_feof(pb)) { + } else if (avio_feof(pb)) { return AVERROR_EOF; } else { if (!s->keylen) { @@ -822,7 +822,7 @@ static int asf_read_header(AVFormatContext *s) avio_rl64(pb); avio_r8(pb); avio_r8(pb); - if (url_feof(pb)) + if (avio_feof(pb)) return AVERROR_EOF; asf->data_offset = avio_tell(pb); asf->packet_size_left = 0; @@ -922,20 +922,20 @@ static int asf_get_packet(AVFormatContext *s, AVIOContext *pb) * the stream. */ if (pb->error == AVERROR(EAGAIN)) return AVERROR(EAGAIN); - if (!url_feof(pb)) + if (!avio_feof(pb)) av_log(s, AV_LOG_ERROR, "ff asf bad header %x at:%"PRId64"\n", c, avio_tell(pb)); } if ((c & 0x8f) == 0x82) { if (d || e) { - if (!url_feof(pb)) + if (!avio_feof(pb)) av_log(s, AV_LOG_ERROR, "ff asf bad non zero\n"); return AVERROR_INVALIDDATA; } c = avio_r8(pb); d = avio_r8(pb); rsize += 3; - } else if(!url_feof(pb)) { + } else if(!avio_feof(pb)) { avio_seek(pb, -1, SEEK_CUR); // FIXME } @@ -1126,7 +1126,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt) ASFStream *asf_st = 0; for (;;) { int ret; - if (url_feof(pb)) + if (avio_feof(pb)) return AVERROR_EOF; if (asf->packet_size_left < FRAME_HEADER_SIZE || asf->packet_segments < 1 && asf->packet_time_start == 0) { @@ -1494,7 +1494,7 @@ static int asf_build_simple_index(AVFormatContext *s, int stream_index) * skip them until the simple index object is reached */ while (ff_guidcmp(&g, &ff_asf_simple_index_header)) { int64_t gsize = avio_rl64(s->pb); - if (gsize < 24 || url_feof(s->pb)) { + if (gsize < 24 || avio_feof(s->pb)) { goto end; } avio_skip(s->pb, gsize - 24); @@ -1532,7 +1532,7 @@ static int asf_build_simple_index(AVFormatContext *s, int stream_index) asf->index_read = ict > 1; } end: -// if (url_feof(s->pb)) { +// if (avio_feof(s->pb)) { // ret = 0; // } avio_seek(s->pb, current_pos, SEEK_SET); |