Browse code

Rename remaining get_byte to avio_r8.

Clément Bœsch authored on 2011/11/14 09:19:56
Showing 4 changed files
... ...
@@ -94,7 +94,7 @@ static int read_header(AVFormatContext *s,
94 94
 
95 95
     avio_seek(pb, 257, SEEK_SET);
96 96
     msec=get_le16(pb);
97
-    sec=get_byte(pb);
97
+    sec=avio_r8(pb);
98 98
     min=get_le32(pb);
99 99
 
100 100
     st->duration = av_rescale(1000*(min*60+sec)+msec, st->codec->sample_rate, 1000 * st->codec->frame_size);
... ...
@@ -69,13 +69,13 @@ static int next_tag_read(AVFormatContext *avctx, uint64_t *fsize)
69 69
         return -1;
70 70
     if (memcmp(buf, next_magic, sizeof(next_magic)))
71 71
         return -1;
72
-    if (get_byte(pb) != 0x01)
72
+    if (avio_r8(pb) != 0x01)
73 73
         return -1;
74 74
 
75 75
     *fsize -= 256;
76 76
 
77 77
 #define GET_EFI2_META(name,size) \
78
-    len = get_byte(pb); \
78
+    len = avio_r8(pb); \
79 79
     if (len < 1 || len > size) \
80 80
         return -1; \
81 81
     if (avio_read(pb, buf, size) == size && *buf) { \
... ...
@@ -181,9 +181,9 @@ static int xbin_read_header(AVFormatContext *s,
181 181
     url_fskip(pb, 5);
182 182
     st->codec->width   = get_le16(pb)<<3;
183 183
     st->codec->height  = get_le16(pb);
184
-    fontheight         = get_byte(pb);
184
+    fontheight         = avio_r8(pb);
185 185
     st->codec->height *= fontheight;
186
-    flags              = get_byte(pb);
186
+    flags              = avio_r8(pb);
187 187
 
188 188
     st->codec->extradata_size = 2;
189 189
     if ((flags & BINTEXT_PALETTE))
... ...
@@ -218,7 +218,7 @@ static int adf_read_header(AVFormatContext *s,
218 218
     AVIOContext *pb = s->pb;
219 219
     AVStream *st;
220 220
 
221
-    if (get_byte(pb) != 1)
221
+    if (avio_r8(pb) != 1)
222 222
         return AVERROR_INVALIDDATA;
223 223
 
224 224
     st = init_stream(s, ap);
... ...
@@ -51,7 +51,7 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt)
51 51
     int size, byte, ret;
52 52
 
53 53
     pkt->pos = url_ftell(s->pb);
54
-    byte     = get_byte(s->pb);
54
+    byte     = avio_r8(s->pb);
55 55
     size     = frame_size[byte & 3];
56 56
 
57 57
     ret = av_new_packet(pkt, size);
... ...
@@ -1305,7 +1305,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
1305 1305
                     st->codec->flags2 |= CODEC_FLAG2_DROP_FRAME_TIMECODE;
1306 1306
                 avio_rb32(pb);
1307 1307
                 avio_rb32(pb);
1308
-                st->codec->time_base.den = get_byte(pb);
1308
+                st->codec->time_base.den = avio_r8(pb);
1309 1309
                 st->codec->time_base.num = 1;
1310 1310
             }
1311 1311
             /* other codec type, just skip (rtp, mp4s, ...) */