comparison electronicarts.c @ 2006:2f0154760e5f libavformat

Get rid of unnecessary pointer casts. patch by Nicholas Tung, ntung ntung com
author diego
date Sun, 08 Apr 2007 20:24:16 +0000
parents 1a3c9056982a
children 7eb456c4ed8a
comparison
equal deleted inserted replaced
2005:fb04036147f8 2006:2f0154760e5f
78 * Returns 1 if the WVE file is valid and successfully opened, 0 otherwise 78 * Returns 1 if the WVE file is valid and successfully opened, 0 otherwise
79 */ 79 */
80 static int process_ea_header(AVFormatContext *s) { 80 static int process_ea_header(AVFormatContext *s) {
81 int inHeader; 81 int inHeader;
82 uint32_t blockid, size; 82 uint32_t blockid, size;
83 EaDemuxContext *ea = (EaDemuxContext *)s->priv_data; 83 EaDemuxContext *ea = s->priv_data;
84 ByteIOContext *pb = &s->pb; 84 ByteIOContext *pb = &s->pb;
85 85
86 if (get_buffer(pb, (void*)&blockid, 4) != 4) { 86 if (get_buffer(pb, (void*)&blockid, 4) != 4) {
87 return 0; 87 return 0;
88 } 88 }
172 } 172 }
173 173
174 static int ea_read_header(AVFormatContext *s, 174 static int ea_read_header(AVFormatContext *s,
175 AVFormatParameters *ap) 175 AVFormatParameters *ap)
176 { 176 {
177 EaDemuxContext *ea = (EaDemuxContext *)s->priv_data; 177 EaDemuxContext *ea = s->priv_data;
178 AVStream *st; 178 AVStream *st;
179 179
180 if (!process_ea_header(s)) 180 if (!process_ea_header(s))
181 return AVERROR_IO; 181 return AVERROR_IO;
182 182
270 return ret; 270 return ret;
271 } 271 }
272 272
273 static int ea_read_close(AVFormatContext *s) 273 static int ea_read_close(AVFormatContext *s)
274 { 274 {
275 // EaDemuxContext *ea = (EaDemuxContext *)s->priv_data; 275 // EaDemuxContext *ea = s->priv_data;
276 276
277 return 0; 277 return 0;
278 } 278 }
279 279
280 AVInputFormat ea_demuxer = { 280 AVInputFormat ea_demuxer = {