Commit 2f7a12fa authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mlz: clear dict on allocation to ensure there are no uninitialized values

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent f2192e0f
......@@ -21,7 +21,7 @@
#include "mlz.h"
av_cold void ff_mlz_init_dict(void* context, MLZ *mlz) {
mlz->dict = av_malloc_array(TABLE_SIZE, sizeof(*mlz->dict));
mlz->dict = av_mallocz_array(TABLE_SIZE, sizeof(*mlz->dict));
mlz->flush_code = FLUSH_CODE;
mlz->current_dic_index_max = DIC_INDEX_INIT;
......
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