diff zmbv.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/zmbv.c	Sun Apr 08 18:54:53 2007 +0000
+++ b/zmbv.c	Sun Apr 08 20:24:16 2007 +0000
@@ -399,7 +399,7 @@
 
 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
 {
-    ZmbvContext * const c = (ZmbvContext *)avctx->priv_data;
+    ZmbvContext * const c = avctx->priv_data;
     uint8_t *outptr;
 #ifdef CONFIG_ZLIB
     int zret = Z_OK; // Zlib return code
@@ -608,7 +608,7 @@
  */
 static int decode_init(AVCodecContext *avctx)
 {
-    ZmbvContext * const c = (ZmbvContext *)avctx->priv_data;
+    ZmbvContext * const c = avctx->priv_data;
     int zret; // Zlib return code
 
     c->avctx = avctx;
@@ -663,7 +663,7 @@
  */
 static int decode_end(AVCodecContext *avctx)
 {
-    ZmbvContext * const c = (ZmbvContext *)avctx->priv_data;
+    ZmbvContext * const c = avctx->priv_data;
 
     av_freep(&c->decomp_buf);