Mercurial > libavcodec.hg
comparison kmvc.c @ 4827:b3ee9a1526b0 libavcodec
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 | 59f4fb490fa7 |
children | f99e40a7155b |
comparison
equal
deleted
inserted
replaced
4826:9ca9a53a848b | 4827:b3ee9a1526b0 |
---|---|
226 } | 226 } |
227 | 227 |
228 static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, | 228 static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, |
229 int buf_size) | 229 int buf_size) |
230 { | 230 { |
231 KmvcContext *const ctx = (KmvcContext *) avctx->priv_data; | 231 KmvcContext *const ctx = avctx->priv_data; |
232 uint8_t *out, *src; | 232 uint8_t *out, *src; |
233 int i; | 233 int i; |
234 int header; | 234 int header; |
235 int blocksize; | 235 int blocksize; |
236 | 236 |
340 /* | 340 /* |
341 * Init kmvc decoder | 341 * Init kmvc decoder |
342 */ | 342 */ |
343 static int decode_init(AVCodecContext * avctx) | 343 static int decode_init(AVCodecContext * avctx) |
344 { | 344 { |
345 KmvcContext *const c = (KmvcContext *) avctx->priv_data; | 345 KmvcContext *const c = avctx->priv_data; |
346 int i; | 346 int i; |
347 | 347 |
348 c->avctx = avctx; | 348 c->avctx = avctx; |
349 | 349 |
350 c->pic.data[0] = NULL; | 350 c->pic.data[0] = NULL; |
392 /* | 392 /* |
393 * Uninit kmvc decoder | 393 * Uninit kmvc decoder |
394 */ | 394 */ |
395 static int decode_end(AVCodecContext * avctx) | 395 static int decode_end(AVCodecContext * avctx) |
396 { | 396 { |
397 KmvcContext *const c = (KmvcContext *) avctx->priv_data; | 397 KmvcContext *const c = avctx->priv_data; |
398 | 398 |
399 av_freep(&c->frm0); | 399 av_freep(&c->frm0); |
400 av_freep(&c->frm1); | 400 av_freep(&c->frm1); |
401 if (c->pic.data[0]) | 401 if (c->pic.data[0]) |
402 avctx->release_buffer(avctx, &c->pic); | 402 avctx->release_buffer(avctx, &c->pic); |