From 0ca088776e056d50bbb09698b95f878c9d1f1898 Mon Sep 17 00:00:00 2001 From: benoit Date: Tue, 30 Sep 2008 09:26:49 +0000 Subject: [PATCH] Corrector type fits in 8 bits. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15472 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/indeo3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index e535971e1..e5d790779 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -51,7 +51,7 @@ typedef struct Indeo3DecodeContext { YUVBufs *ref_frame; unsigned char *ModPred; - unsigned short *corrector_type; + uint8_t *corrector_type; } Indeo3DecodeContext; static const uint8_t corrector_type_0[24] = { @@ -80,7 +80,7 @@ static av_cold void build_modpred(Indeo3DecodeContext *s) s->ModPred[i+7*128] = 2*((i + 5) - ((i + 4) % 9)); } - s->corrector_type = av_malloc(24 * 256 * sizeof(*s->corrector_type)); + s->corrector_type = av_malloc(24 * 256); for (i=0; i < 24; ++i) { for (j=0; j < 256; ++j) { @@ -308,7 +308,7 @@ static void iv_Decode_Chunk(Indeo3DecodeContext *s, unsigned char *cur_frm_pos, *ref_frm_pos, *cp, *cp2; uint32_t *cur_lp, *ref_lp; const uint32_t *correction_lp[2], *correctionloworder_lp[2], *correctionhighorder_lp[2]; - unsigned short *correction_type_sp[2]; + uint8_t *correction_type_sp[2]; ustr_t strip_tbl[20], *strip; int i, j, k, lp1, lp2, flag1, cmd, blks_width, blks_height, region_160_width, rle_v1, rle_v2, rle_v3; -- 2.39.2