diff eatqi.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/eatqi.c	Sun Apr 12 09:33:38 2009 +0000
+++ b/eatqi.c	Sun Apr 12 12:25:53 2009 +0000
@@ -38,7 +38,7 @@
 typedef struct TqiContext {
     MpegEncContext s;
     AVFrame frame;
-    uint8_t *bitstream_buf;
+    void *bitstream_buf;
     unsigned int bitstream_buf_size;
 } TqiContext;
 
@@ -129,7 +129,7 @@
     t->bitstream_buf = av_fast_realloc(t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE);
     if (!t->bitstream_buf)
         return AVERROR(ENOMEM);
-    s->dsp.bswap_buf((uint32_t*)t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4);
+    s->dsp.bswap_buf(t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4);
     init_get_bits(&s->gb, t->bitstream_buf, 8*(buf_end-buf));
 
     s->last_dc[0] = s->last_dc[1] = s->last_dc[2] = 0;