static const uint8_t *read_huffman_tables(FourXContext *f,
const uint8_t * const buf)
{
- int frequency[512];
+ int frequency[512] = { 0 };
uint8_t flag[512];
int up[512];
uint8_t len_tab[257];
const uint8_t *ptr = buf;
int j;
- memset(frequency, 0, sizeof(frequency));
memset(up, -1, sizeof(up));
start = *ptr++;
for (y = 0; y < height; y += 16) {
for (x = 0; x < width; x += 16) {
- unsigned int color[4], bits;
- memset(color, 0, sizeof(color));
+ unsigned int color[4] = { 0 }, bits;
// warning following is purely guessed ...
color[0] = bytestream2_get_le16u(&g3);
color[1] = bytestream2_get_le16u(&g3);
{
FourXContext * const f = avctx->priv_data;
- dsputil_init(&f->dsp, avctx);
+ ff_dsputil_init(&f->dsp, avctx);
f->avctx = avctx;
}