Mercurial > libavcodec.hg
diff vmnc.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 |
line wrap: on
line diff
--- a/vmnc.c Sun Apr 08 18:54:53 2007 +0000 +++ b/vmnc.c Sun Apr 08 20:24:16 2007 +0000 @@ -287,7 +287,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { - VmncContext * const c = (VmncContext *)avctx->priv_data; + VmncContext * const c = avctx->priv_data; uint8_t *outptr; uint8_t *src = buf; int dx, dy, w, h, depth, enc, chunks, res, size_left; @@ -460,7 +460,7 @@ */ static int decode_init(AVCodecContext *avctx) { - VmncContext * const c = (VmncContext *)avctx->priv_data; + VmncContext * const c = avctx->priv_data; c->avctx = avctx; @@ -500,7 +500,7 @@ */ static int decode_end(AVCodecContext *avctx) { - VmncContext * const c = (VmncContext *)avctx->priv_data; + VmncContext * const c = avctx->priv_data; if (c->pic.data[0]) avctx->release_buffer(avctx, &c->pic);