Mercurial > libavformat.hg
comparison wc3movie.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 | a782462e2497 |
children | 7eb456c4ed8a |
comparison
equal
deleted
inserted
replaced
2005:fb04036147f8 | 2006:2f0154760e5f |
---|---|
123 } | 123 } |
124 | 124 |
125 static int wc3_read_header(AVFormatContext *s, | 125 static int wc3_read_header(AVFormatContext *s, |
126 AVFormatParameters *ap) | 126 AVFormatParameters *ap) |
127 { | 127 { |
128 Wc3DemuxContext *wc3 = (Wc3DemuxContext *)s->priv_data; | 128 Wc3DemuxContext *wc3 = s->priv_data; |
129 ByteIOContext *pb = &s->pb; | 129 ByteIOContext *pb = &s->pb; |
130 unsigned int fourcc_tag; | 130 unsigned int fourcc_tag; |
131 unsigned int size; | 131 unsigned int size; |
132 AVStream *st; | 132 AVStream *st; |
133 unsigned char preamble[WC3_PREAMBLE_SIZE]; | 133 unsigned char preamble[WC3_PREAMBLE_SIZE]; |
269 } | 269 } |
270 | 270 |
271 static int wc3_read_packet(AVFormatContext *s, | 271 static int wc3_read_packet(AVFormatContext *s, |
272 AVPacket *pkt) | 272 AVPacket *pkt) |
273 { | 273 { |
274 Wc3DemuxContext *wc3 = (Wc3DemuxContext *)s->priv_data; | 274 Wc3DemuxContext *wc3 = s->priv_data; |
275 ByteIOContext *pb = &s->pb; | 275 ByteIOContext *pb = &s->pb; |
276 unsigned int fourcc_tag; | 276 unsigned int fourcc_tag; |
277 unsigned int size; | 277 unsigned int size; |
278 int packet_read = 0; | 278 int packet_read = 0; |
279 int ret = 0; | 279 int ret = 0; |
374 return ret; | 374 return ret; |
375 } | 375 } |
376 | 376 |
377 static int wc3_read_close(AVFormatContext *s) | 377 static int wc3_read_close(AVFormatContext *s) |
378 { | 378 { |
379 Wc3DemuxContext *wc3 = (Wc3DemuxContext *)s->priv_data; | 379 Wc3DemuxContext *wc3 = s->priv_data; |
380 | 380 |
381 av_free(wc3->palettes); | 381 av_free(wc3->palettes); |
382 | 382 |
383 return 0; | 383 return 0; |
384 } | 384 } |