From 9bf993a5b5f8bf10c590d83c795467606f92cf6e Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 12 Apr 2009 12:25:53 +0000 Subject: 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. Originally committed as revision 18469 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mimic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/mimic.c') diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 3b40fdf759..4716284576 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -36,7 +36,7 @@ typedef struct { 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 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data, 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); -- cgit v1.2.3