diff lcl.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 66ef3690d108
children f99e40a7155b
line wrap: on
line diff
--- a/lcl.c	Sun Apr 08 18:54:53 2007 +0000
+++ b/lcl.c	Sun Apr 08 20:24:16 2007 +0000
@@ -200,7 +200,7 @@
  */
 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
 {
-        LclContext * const c = (LclContext *)avctx->priv_data;
+        LclContext * const c = avctx->priv_data;
         unsigned char *encoded = (unsigned char *)buf;
     unsigned int pixel_ptr;
     int row, col;
@@ -617,7 +617,7 @@
  */
 static int decode_init(AVCodecContext *avctx)
 {
-    LclContext * const c = (LclContext *)avctx->priv_data;
+    LclContext * const c = avctx->priv_data;
     unsigned int basesize = avctx->width * avctx->height;
     unsigned int max_basesize = ((avctx->width + 3) & ~3) * ((avctx->height + 3) & ~3);
     unsigned int max_decomp_size;
@@ -852,7 +852,7 @@
  */
 static int decode_end(AVCodecContext *avctx)
 {
-        LclContext * const c = (LclContext *)avctx->priv_data;
+        LclContext * const c = avctx->priv_data;
 
         if (c->pic.data[0])
                 avctx->release_buffer(avctx, &c->pic);