diff mimic.c @ 9414:5a738e8f9524 libavcodec

Use void * instead of uint8_t * for the destination buffer for dsp.bswap_buf where easily possible (mimic, eatqi, 4xm). This allows to avoid a typecast.
author reimar
date Sun, 12 Apr 2009 12:25:53 +0000
parents 1eafaea58613
children 141badec76fc
line wrap: on
line diff
--- a/mimic.c	Sun Apr 12 09:33:38 2009 +0000
+++ b/mimic.c	Sun Apr 12 12:25:53 2009 +0000
@@ -36,7 +36,7 @@
     int             num_vblocks[3];
     int             num_hblocks[3];
 
-    uint8_t        *swap_buf;
+    void           *swap_buf;
     int             swap_buf_size;
 
     int             cur_index;
@@ -339,7 +339,7 @@
     if(!ctx->swap_buf)
         return AVERROR(ENOMEM);
 
-    ctx->dsp.bswap_buf((uint32_t*)ctx->swap_buf,
+    ctx->dsp.bswap_buf(ctx->swap_buf,
                         (const uint32_t*) buf,
                         swap_buf_size>>2);
     init_get_bits(&ctx->gb, ctx->swap_buf, swap_buf_size << 3);