Browse Source

avcodec/hevc: Do not zero is_pcm on allocation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Christophe Gisquet Michael Niedermayer 11 years ago
parent
commit
00fe77855b
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/hevc.c

+ 1
- 2
libavcodec/hevc.c View File

@@ -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;



Loading…
Cancel
Save