comparison mtv.c @ 2771:d52c718e83f9 libavformat

Use dynamically allocated ByteIOContext in AVFormatContext patch by: Bj«Órn Axelsson, bjorn d axelsson a intinor d se thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007
author andoma
date Wed, 21 Nov 2007 07:41:00 +0000
parents b21c2af60bc9
children 1de87c1b6a12
comparison
equal deleted inserted replaced
2770:a7e42cf4b364 2771:d52c718e83f9
63 } 63 }
64 64
65 static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap) 65 static int mtv_read_header(AVFormatContext *s, AVFormatParameters *ap)
66 { 66 {
67 MTVDemuxContext *mtv = s->priv_data; 67 MTVDemuxContext *mtv = s->priv_data;
68 ByteIOContext *pb = &s->pb; 68 ByteIOContext *pb = s->pb;
69 AVStream *st; 69 AVStream *st;
70 70
71 71
72 url_fskip(pb, 3); 72 url_fskip(pb, 3);
73 mtv->file_size = get_le32(pb); 73 mtv->file_size = get_le32(pb);
129 } 129 }
130 130
131 static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt) 131 static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt)
132 { 132 {
133 MTVDemuxContext *mtv = s->priv_data; 133 MTVDemuxContext *mtv = s->priv_data;
134 ByteIOContext *pb = &s->pb; 134 ByteIOContext *pb = s->pb;
135 int ret; 135 int ret;
136 #ifndef WORDS_BIGENDIAN 136 #ifndef WORDS_BIGENDIAN
137 int i; 137 int i;
138 #endif 138 #endif
139 139