Browse code

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>

Michael Niedermayer authored on 2014/07/16 08:33:50
Showing 1 changed files
... ...
@@ -2427,7 +2427,7 @@ static int hls_slice_data_wpp(HEVCContext *s, const uint8_t *nal, int length)
2427 2427
         for (i = 1; i < s->threads_number; i++) {
2428 2428
             s->sList[i] = av_malloc(sizeof(HEVCContext));
2429 2429
             memcpy(s->sList[i], s, sizeof(HEVCContext));
2430
-            s->HEVClcList[i] = av_malloc(sizeof(HEVCLocalContext));
2430
+            s->HEVClcList[i] = av_mallocz(sizeof(HEVCLocalContext));
2431 2431
             s->sList[i]->HEVClc = s->HEVClcList[i];
2432 2432
         }
2433 2433
     }