Commit 600cbf36 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/bitstream: zero vlc tables on allocation

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 189ffeaf
......@@ -117,6 +117,7 @@ static int alloc_table(VLC *vlc, int size, int use_static)
vlc->table_size = 0;
return AVERROR(ENOMEM);
}
memset(vlc->table + vlc->table_allocated - (1 << vlc->bits), 0, sizeof(VLC_TYPE) * 2 << vlc->bits);
}
return index;
}
......
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