diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-07 21:50:25 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-07 17:20:31 -0500 |
commit | 66e5b1df360a28b083bc9ec5a76e7add5f40ce1f (patch) | |
tree | 2de95f70d35fd95832de9db9c1061270dcf8ae19 /libavformat/gxf.c | |
parent | 6a7e074eb98c4d45898d7f2920312db6899ee650 (diff) | |
download | ffmpeg-66e5b1df360a28b083bc9ec5a76e7add5f40ce1f.tar.gz |
avio: deprecate url_feof
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/gxf.c')
-rw-r--r-- | libavformat/gxf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/gxf.c b/libavformat/gxf.c index dc0272d5c3..9e47249152 100644 --- a/libavformat/gxf.c +++ b/libavformat/gxf.c @@ -368,7 +368,7 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) { #define READ_ONE() \ { \ - if (!max_interval-- || url_feof(pb)) \ + if (!max_interval-- || pb->eof_reached) \ goto out; \ tmp = tmp << 8 | avio_r8(pb); \ } @@ -422,13 +422,13 @@ static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { AVIOContext *pb = s->pb; GXFPktType pkt_type; int pkt_len; - while (!url_feof(pb)) { + while (!pb->eof_reached) { AVStream *st; int track_type, track_id, ret; int field_nr, field_info, skip = 0; int stream_index; if (!parse_packet_header(pb, &pkt_type, &pkt_len)) { - if (!url_feof(pb)) + if (!pb->eof_reached) av_log(s, AV_LOG_ERROR, "sync lost\n"); return -1; } |