Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9413:1eafaea58613 | 9414:5a738e8f9524 |
---|---|
34 AVCodecContext *avctx; | 34 AVCodecContext *avctx; |
35 | 35 |
36 int num_vblocks[3]; | 36 int num_vblocks[3]; |
37 int num_hblocks[3]; | 37 int num_hblocks[3]; |
38 | 38 |
39 uint8_t *swap_buf; | 39 void *swap_buf; |
40 int swap_buf_size; | 40 int swap_buf_size; |
41 | 41 |
42 int cur_index; | 42 int cur_index; |
43 int prev_index; | 43 int prev_index; |
44 | 44 |
337 ctx->swap_buf = av_fast_realloc(ctx->swap_buf, &ctx->swap_buf_size, | 337 ctx->swap_buf = av_fast_realloc(ctx->swap_buf, &ctx->swap_buf_size, |
338 swap_buf_size + FF_INPUT_BUFFER_PADDING_SIZE); | 338 swap_buf_size + FF_INPUT_BUFFER_PADDING_SIZE); |
339 if(!ctx->swap_buf) | 339 if(!ctx->swap_buf) |
340 return AVERROR(ENOMEM); | 340 return AVERROR(ENOMEM); |
341 | 341 |
342 ctx->dsp.bswap_buf((uint32_t*)ctx->swap_buf, | 342 ctx->dsp.bswap_buf(ctx->swap_buf, |
343 (const uint32_t*) buf, | 343 (const uint32_t*) buf, |
344 swap_buf_size>>2); | 344 swap_buf_size>>2); |
345 init_get_bits(&ctx->gb, ctx->swap_buf, swap_buf_size << 3); | 345 init_get_bits(&ctx->gb, ctx->swap_buf, swap_buf_size << 3); |
346 | 346 |
347 if(!decode(ctx, quality, num_coeffs, !is_pframe)) { | 347 if(!decode(ctx, quality, num_coeffs, !is_pframe)) { |