diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-06 19:59:29 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-07 10:51:21 -0500 |
commit | e51975392d85e72801193123945a35fb5221248f (patch) | |
tree | 3d08f63c4b923608f59a81b3705e6ed92492c54a /libavformat/oggdec.c | |
parent | 655e45e7dfafc494044cc52f8889fc6da75eff6a (diff) | |
download | ffmpeg-e51975392d85e72801193123945a35fb5221248f.tar.gz |
avio: deprecate url_fgetc and remove all it uses
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r-- | libavformat/oggdec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index ff6b69a508..2eb9e03f76 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -218,8 +218,8 @@ ogg_read_page (AVFormatContext * s, int *str) sync[(sp + 2) & 3] == 'g' && sync[(sp + 3) & 3] == 'S') break; - c = url_fgetc (bc); - if (c < 0) + c = avio_r8(bc); + if (url_feof(bc)) return -1; sync[sp++ & 3] = c; }while (i++ < MAX_PAGE_SIZE); @@ -229,15 +229,15 @@ ogg_read_page (AVFormatContext * s, int *str) return -1; } - if (url_fgetc (bc) != 0) /* version */ + if (avio_r8(bc) != 0) /* version */ return -1; - flags = url_fgetc (bc); + flags = avio_r8(bc); gp = avio_rl64 (bc); serial = avio_rl32 (bc); seq = avio_rl32 (bc); crc = avio_rl32 (bc); - nsegs = url_fgetc (bc); + nsegs = avio_r8(bc); idx = ogg_find_stream (ogg, serial); if (idx < 0){ |