Browse Source

avio: rename ByteIOContext to AVIOContext.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit ae628ec1fd7f54c102bf9e667a3edd404b9b9128)
Anton Khirnov 14 years ago
parent
commit
471fe57e1a

+ 5 - 5
ffserver.c

@@ -163,7 +163,7 @@ typedef struct HTTPContext {
 
 
     /* RTSP state specific */
     /* RTSP state specific */
     uint8_t *pb_buffer; /* XXX: use that in all the code */
     uint8_t *pb_buffer; /* XXX: use that in all the code */
-    ByteIOContext *pb;
+    AVIOContext *pb;
     int seq; /* RTSP sequence number */
     int seq; /* RTSP sequence number */
 
 
     /* RTP state specific */
     /* RTP state specific */
@@ -1854,7 +1854,7 @@ static int http_parse_request(HTTPContext *c)
     return 0;
     return 0;
 }
 }
 
 
-static void fmt_bytecount(ByteIOContext *pb, int64_t count)
+static void fmt_bytecount(AVIOContext *pb, int64_t count)
 {
 {
     static const char *suffix = " kMGTP";
     static const char *suffix = " kMGTP";
     const char *s;
     const char *s;
@@ -1871,7 +1871,7 @@ static void compute_status(HTTPContext *c)
     char *p;
     char *p;
     time_t ti;
     time_t ti;
     int i, len;
     int i, len;
-    ByteIOContext *pb;
+    AVIOContext *pb;
 
 
     if (url_open_dyn_buf(&pb) < 0) {
     if (url_open_dyn_buf(&pb) < 0) {
         /* XXX: return an error ? */
         /* XXX: return an error ? */
@@ -2491,7 +2491,7 @@ static int http_send_data(HTTPContext *c)
 
 
                 if (c->rtp_protocol == RTSP_LOWER_TRANSPORT_TCP) {
                 if (c->rtp_protocol == RTSP_LOWER_TRANSPORT_TCP) {
                     /* RTP packets are sent inside the RTSP TCP connection */
                     /* RTP packets are sent inside the RTSP TCP connection */
-                    ByteIOContext *pb;
+                    AVIOContext *pb;
                     int interleaved_index, size;
                     int interleaved_index, size;
                     uint8_t header[4];
                     uint8_t header[4];
                     HTTPContext *rtsp_c;
                     HTTPContext *rtsp_c;
@@ -2712,7 +2712,7 @@ static int http_receive_data(HTTPContext *c)
         } else {
         } else {
             /* We have a header in our hands that contains useful data */
             /* We have a header in our hands that contains useful data */
             AVFormatContext *s = NULL;
             AVFormatContext *s = NULL;
-            ByteIOContext *pb;
+            AVIOContext *pb;
             AVInputFormat *fmt_in;
             AVInputFormat *fmt_in;
             int i;
             int i;
 
 

+ 2 - 2
libavformat/4xm.c

@@ -92,7 +92,7 @@ static int fourxm_probe(AVProbeData *p)
 static int fourxm_read_header(AVFormatContext *s,
 static int fourxm_read_header(AVFormatContext *s,
                               AVFormatParameters *ap)
                               AVFormatParameters *ap)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     unsigned int fourcc_tag;
     unsigned int fourcc_tag;
     unsigned int size;
     unsigned int size;
     int header_size;
     int header_size;
@@ -244,7 +244,7 @@ static int fourxm_read_packet(AVFormatContext *s,
                               AVPacket *pkt)
                               AVPacket *pkt)
 {
 {
     FourxmDemuxContext *fourxm = s->priv_data;
     FourxmDemuxContext *fourxm = s->priv_data;
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     unsigned int fourcc_tag;
     unsigned int fourcc_tag;
     unsigned int size, out_size;
     unsigned int size, out_size;
     int ret = 0;
     int ret = 0;

+ 1 - 1
libavformat/adtsenc.c

@@ -118,7 +118,7 @@ int ff_adts_write_frame_header(ADTSContext *ctx,
 static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
 static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
 {
 {
     ADTSContext *adts = s->priv_data;
     ADTSContext *adts = s->priv_data;
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     uint8_t buf[ADTS_HEADER_SIZE];
     uint8_t buf[ADTS_HEADER_SIZE];
 
 
     if (!pkt->size)
     if (!pkt->size)

+ 3 - 3
libavformat/aiffdec.c

@@ -47,7 +47,7 @@ static enum CodecID aiff_codec_get_id(int bps)
 }
 }
 
 
 /* returns the size of the found tag */
 /* returns the size of the found tag */
-static int get_tag(ByteIOContext *pb, uint32_t * tag)
+static int get_tag(AVIOContext *pb, uint32_t * tag)
 {
 {
     int size;
     int size;
 
 
@@ -83,7 +83,7 @@ static void get_meta(AVFormatContext *s, const char *key, int size)
 }
 }
 
 
 /* Returns the number of sound data frames or negative on error */
 /* Returns the number of sound data frames or negative on error */
-static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
+static unsigned int get_aiff_header(AVIOContext *pb, AVCodecContext *codec,
                              int size, unsigned version)
                              int size, unsigned version)
 {
 {
     AVExtFloat ext;
     AVExtFloat ext;
@@ -177,7 +177,7 @@ static int aiff_read_header(AVFormatContext *s,
     int64_t offset = 0;
     int64_t offset = 0;
     uint32_t tag;
     uint32_t tag;
     unsigned version = AIFF_C_VERSION1;
     unsigned version = AIFF_C_VERSION1;
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     AVStream * st;
     AVStream * st;
     AIFFInputContext *aiff = s->priv_data;
     AIFFInputContext *aiff = s->priv_data;
 
 

+ 3 - 3
libavformat/aiffenc.c

@@ -31,7 +31,7 @@ typedef struct {
 static int aiff_write_header(AVFormatContext *s)
 static int aiff_write_header(AVFormatContext *s)
 {
 {
     AIFFOutputContext *aiff = s->priv_data;
     AIFFOutputContext *aiff = s->priv_data;
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     AVCodecContext *enc = s->streams[0]->codec;
     AVCodecContext *enc = s->streams[0]->codec;
     AVExtFloat sample_rate;
     AVExtFloat sample_rate;
     int aifc = 0;
     int aifc = 0;
@@ -104,14 +104,14 @@ static int aiff_write_header(AVFormatContext *s)
 
 
 static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt)
 static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     put_buffer(pb, pkt->data, pkt->size);
     put_buffer(pb, pkt->data, pkt->size);
     return 0;
     return 0;
 }
 }
 
 
 static int aiff_write_trailer(AVFormatContext *s)
 static int aiff_write_trailer(AVFormatContext *s)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     AIFFOutputContext *aiff = s->priv_data;
     AIFFOutputContext *aiff = s->priv_data;
     AVCodecContext *enc = s->streams[0]->codec;
     AVCodecContext *enc = s->streams[0]->codec;
 
 

+ 2 - 2
libavformat/amr.c

@@ -33,7 +33,7 @@ static const char AMRWB_header [] = "#!AMR-WB\n";
 #if CONFIG_AMR_MUXER
 #if CONFIG_AMR_MUXER
 static int amr_write_header(AVFormatContext *s)
 static int amr_write_header(AVFormatContext *s)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     AVCodecContext *enc = s->streams[0]->codec;
     AVCodecContext *enc = s->streams[0]->codec;
 
 
     s->priv_data = NULL;
     s->priv_data = NULL;
@@ -78,7 +78,7 @@ static int amr_probe(AVProbeData *p)
 static int amr_read_header(AVFormatContext *s,
 static int amr_read_header(AVFormatContext *s,
                            AVFormatParameters *ap)
                            AVFormatParameters *ap)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     AVStream *st;
     AVStream *st;
     uint8_t header[9];
     uint8_t header[9];
 
 

+ 2 - 2
libavformat/anm.c

@@ -79,7 +79,7 @@ static int read_header(AVFormatContext *s,
                        AVFormatParameters *ap)
                        AVFormatParameters *ap)
 {
 {
     AnmDemuxContext *anm = s->priv_data;
     AnmDemuxContext *anm = s->priv_data;
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     AVStream *st;
     AVStream *st;
     int i, ret;
     int i, ret;
 
 
@@ -177,7 +177,7 @@ static int read_packet(AVFormatContext *s,
                        AVPacket *pkt)
                        AVPacket *pkt)
 {
 {
     AnmDemuxContext *anm = s->priv_data;
     AnmDemuxContext *anm = s->priv_data;
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     Page *p;
     Page *p;
     int tmp, record_size;
     int tmp, record_size;
 
 

+ 1 - 1
libavformat/apc.c

@@ -32,7 +32,7 @@ static int apc_probe(AVProbeData *p)
 
 
 static int apc_read_header(AVFormatContext *s, AVFormatParameters *ap)
 static int apc_read_header(AVFormatContext *s, AVFormatParameters *ap)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     AVStream *st;
     AVStream *st;
 
 
     get_le32(pb); /* CRYO */
     get_le32(pb); /* CRYO */

+ 1 - 1
libavformat/ape.c

@@ -151,7 +151,7 @@ static void ape_dumpinfo(AVFormatContext * s, APEContext * ape_ctx)
 
 
 static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
 static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     APEContext *ape = s->priv_data;
     APEContext *ape = s->priv_data;
     AVStream *st;
     AVStream *st;
     uint32_t tag;
     uint32_t tag;

+ 2 - 2
libavformat/apetag.c

@@ -33,7 +33,7 @@
 
 
 static int ape_tag_read_field(AVFormatContext *s)
 static int ape_tag_read_field(AVFormatContext *s)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     uint8_t key[1024], *value;
     uint8_t key[1024], *value;
     uint32_t size, flags;
     uint32_t size, flags;
     int i, c;
     int i, c;
@@ -65,7 +65,7 @@ static int ape_tag_read_field(AVFormatContext *s)
 
 
 void ff_ape_parse_tag(AVFormatContext *s)
 void ff_ape_parse_tag(AVFormatContext *s)
 {
 {
-    ByteIOContext *pb = s->pb;
+    AVIOContext *pb = s->pb;
     int file_size = url_fsize(pb);
     int file_size = url_fsize(pb);
     uint32_t val, fields, tag_bytes;
     uint32_t val, fields, tag_bytes;
     uint8_t buf[8];
     uint8_t buf[8];

Some files were not shown because too many files changed in this diff