Commit 4a8ff063 authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

Prevent NULL dereference when the huffman table is invalid in the 4xm decoder.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a1876e00
......@@ -601,9 +601,10 @@ static const uint8_t *read_huffman_tables(FourXContext *f, const uint8_t * const
len_tab[j]= len;
}
init_vlc(&f->pre_vlc, ACDC_VLC_BITS, 257,
if (init_vlc(&f->pre_vlc, ACDC_VLC_BITS, 257,
len_tab , 1, 1,
bits_tab, 4, 4, 0);
bits_tab, 4, 4, 0))
return NULL;
return ptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment