diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-16 01:33:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-16 01:34:57 +0200 |
commit | cf92cc8751bb27666a5b8c7c384a3c6b379823b3 (patch) | |
tree | cf17f6dfe877a343d5609773aac8e1fd2cdcc89b | |
parent | a0b71e9f3e95d22b098e4d81c26d3bfe1f53249f (diff) | |
download | ffmpeg-cf92cc8751bb27666a5b8c7c384a3c6b379823b3.tar.gz |
avcodec/hevc: clear HEVClcList[i] on allocation
Fixes fate failure with --enable-memory-poisoning && make THREAD_TYPE=slice THREADS=7 fate-hevc-conformance-ENTP_C_Qualcomm_1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index cccd07ac83..afb2baaf65 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2427,7 +2427,7 @@ static int hls_slice_data_wpp(HEVCContext *s, const uint8_t *nal, int length) for (i = 1; i < s->threads_number; i++) { s->sList[i] = av_malloc(sizeof(HEVCContext)); memcpy(s->sList[i], s, sizeof(HEVCContext)); - s->HEVClcList[i] = av_malloc(sizeof(HEVCLocalContext)); + s->HEVClcList[i] = av_mallocz(sizeof(HEVCLocalContext)); s->sList[i]->HEVClc = s->HEVClcList[i]; } } |