diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-04-12 12:25:53 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-04-12 12:25:53 +0000 |
commit | 9bf993a5b5f8bf10c590d83c795467606f92cf6e (patch) | |
tree | 024d31d50addc0561be95284a43cc568f7099c7b /libavcodec/mimic.c | |
parent | 0c13bbf509d934e15593d9ae203a9592433002f6 (diff) | |
download | ffmpeg-9bf993a5b5f8bf10c590d83c795467606f92cf6e.tar.gz |
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
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r-- | libavcodec/mimic.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |