hevc: Initialize mergecand_list to 0
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 17 Sep 2014 17:51:40 +0000 (19:51 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 29 Sep 2014 11:33:46 +0000 (12:33 +0100)
Unbreak cf6090dc6252f2b276aa4133e3d73a89f4c6046c.

CC: libav-stable@libav.org
Sample-Id: hevc-conformance-LTRPSPS_A_Qualcomm_1

libavcodec/hevc_mvs.c

index cc5a16c..a611b76 100644 (file)
@@ -556,6 +556,8 @@ void ff_hevc_luma_mv_merge_mode(HEVCContext *s, int x0, int y0, int nPbW,
     int nPbH2 = nPbH;
     HEVCLocalContext *lc = &s->HEVClc;
 
+    memset(mergecand_list, 0, MRG_MAX_NUM_CANDS * sizeof(*mergecand_list));
+
     if (s->pps->log2_parallel_merge_level > 2 && nCS == 8) {
         singleMCLFlag = 1;
         x0            = lc->cu.x;