OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2192e0
)
avcodec/mlz: clear dict on allocation to ensure there are no uninitialized values
author
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 8 Sep 2016 17:46:27 +0000
(19:46 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Thu, 8 Sep 2016 18:31:15 +0000
(20:31 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mlz.c
patch
|
blob
|
history
diff --git
a/libavcodec/mlz.c
b/libavcodec/mlz.c
index
04b684d
..
acb0908
100644
(file)
--- 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_malloc
z
_array(TABLE_SIZE, sizeof(*mlz->dict));
mlz->flush_code = FLUSH_CODE;
mlz->current_dic_index_max = DIC_INDEX_INIT;