Commit 1a96b27e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264: clear dequant8_coeff pointers if 8x8 mode is not enabled

This prevents stale pointers from being left
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3e309c5d
......@@ -1314,6 +1314,8 @@ static void init_dequant_tables(H264Context *h)
{
int i, x;
init_dequant4_coeff_table(h);
memset(h->dequant8_coeff, 0, sizeof(h->dequant8_coeff));
if (h->pps.transform_8x8_mode)
init_dequant8_coeff_table(h);
if (h->sps.transform_bypass) {
......
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