summaryrefslogtreecommitdiff
path: root/libavcodec/eatqi.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-12 12:25:53 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-04-12 12:25:53 +0000
commit9bf993a5b5f8bf10c590d83c795467606f92cf6e (patch)
tree024d31d50addc0561be95284a43cc568f7099c7b /libavcodec/eatqi.c
parent0c13bbf509d934e15593d9ae203a9592433002f6 (diff)
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/eatqi.c')
-rw-r--r--libavcodec/eatqi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c
index acddec0f9a..06dd7148c4 100644
--- a/libavcodec/eatqi.c
+++ b/libavcodec/eatqi.c
@@ -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 @@ static int tqi_decode_frame(AVCodecContext *avctx,
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;