diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-08 19:46:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-08 20:31:15 +0200 |
commit | 2f7a12fab5a2ea17bd78b155e9af965669fb9b52 (patch) | |
tree | 3405cb2cf57a7511e94dd69bddc23cc9cb5e020b /libavcodec/mlz.c | |
parent | f2192e0f0399c7cbb1ac3f311726f2fa9cdf1dba (diff) |
avcodec/mlz: clear dict on allocation to ensure there are no uninitialized values
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mlz.c')
-rw-r--r-- | libavcodec/mlz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlz.c b/libavcodec/mlz.c index 04b684d4f5..acb090824f 100644 --- a/libavcodec/mlz.c +++ b/libavcodec/mlz.c @@ -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; |