From 00fe77855b2aaf5de5bfe4d566a4ddd80aa6812e Mon Sep 17 00:00:00 2001 From: Christophe Gisquet Date: Mon, 2 Feb 2015 15:51:45 +0100 Subject: [PATCH] avcodec/hevc: Do not zero is_pcm on allocation Signed-off-by: Michael Niedermayer --- libavcodec/hevc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index a940f0bdbc..b77dbcde4c 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -104,8 +104,7 @@ static int pic_arrays_init(HEVCContext *s, const HEVCSPS *sps) s->cbf_luma = av_malloc_array(sps->min_tb_width, sps->min_tb_height); s->tab_ipm = av_mallocz(min_pu_size); - s->is_pcm = av_mallocz_array(sps->min_pu_width + 1, sps->min_pu_height + 1); - + s->is_pcm = av_malloc_array(sps->min_pu_width + 1, sps->min_pu_height + 1); if (!s->tab_ipm || !s->cbf_luma || !s->is_pcm) goto fail;