comparison segafilm.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 b2288cba3795
comparison
equal deleted inserted replaced
2770:a7e42cf4b364 2771:d52c718e83f9
74 74
75 static int film_read_header(AVFormatContext *s, 75 static int film_read_header(AVFormatContext *s,
76 AVFormatParameters *ap) 76 AVFormatParameters *ap)
77 { 77 {
78 FilmDemuxContext *film = s->priv_data; 78 FilmDemuxContext *film = s->priv_data;
79 ByteIOContext *pb = &s->pb; 79 ByteIOContext *pb = s->pb;
80 AVStream *st; 80 AVStream *st;
81 unsigned char scratch[256]; 81 unsigned char scratch[256];
82 int i; 82 int i;
83 unsigned int data_offset; 83 unsigned int data_offset;
84 unsigned int audio_frame_counter; 84 unsigned int audio_frame_counter;
202 202
203 static int film_read_packet(AVFormatContext *s, 203 static int film_read_packet(AVFormatContext *s,
204 AVPacket *pkt) 204 AVPacket *pkt)
205 { 205 {
206 FilmDemuxContext *film = s->priv_data; 206 FilmDemuxContext *film = s->priv_data;
207 ByteIOContext *pb = &s->pb; 207 ByteIOContext *pb = s->pb;
208 film_sample_t *sample; 208 film_sample_t *sample;
209 int ret = 0; 209 int ret = 0;
210 int i; 210 int i;
211 int left, right; 211 int left, right;
212 212