From b7effd4e8338f6ed5bda630ad7ed0809bf458648 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 21 Feb 2011 16:43:01 +0100 Subject: avio: avio_ prefixes for get_* functions In the name of consistency: get_byte -> avio_r8 get_ -> avio_r get_buffer -> avio_read get_partial_buffer will be made private later get_strz is left out becase I want to change it later to return something useful. Signed-off-by: Ronald S. Bultje --- libavformat/oggdec.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libavformat/oggdec.c') diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index d508fe32d2..a79cd3ef9d 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -207,7 +207,7 @@ ogg_read_page (AVFormatContext * s, int *str) uint8_t sync[4]; int sp = 0; - if (get_buffer (bc, sync, 4) < 4) + if (avio_read (bc, sync, 4) < 4) return -1; do{ @@ -233,10 +233,10 @@ ogg_read_page (AVFormatContext * s, int *str) return -1; flags = url_fgetc (bc); - gp = get_le64 (bc); - serial = get_le32 (bc); - seq = get_le32 (bc); - crc = get_le32 (bc); + gp = avio_rl64 (bc); + serial = avio_rl32 (bc); + seq = avio_rl32 (bc); + crc = avio_rl32 (bc); nsegs = url_fgetc (bc); idx = ogg_find_stream (ogg, serial); @@ -252,7 +252,7 @@ ogg_read_page (AVFormatContext * s, int *str) if(os->psize > 0) ogg_new_buf(ogg, idx); - if (get_buffer (bc, os->segments, nsegs) < nsegs) + if (avio_read (bc, os->segments, nsegs) < nsegs) return -1; os->nsegs = nsegs; @@ -284,7 +284,7 @@ ogg_read_page (AVFormatContext * s, int *str) os->buf = nb; } - if (get_buffer (bc, os->buf + os->bufpos, size) < size) + if (avio_read (bc, os->buf + os->bufpos, size) < size) return -1; os->bufpos += size; -- cgit v1.2.3