[FFmpeg-cvslog] hevc: Initialize mergecand_list to 0

Luca Barbato git at videolan.org
Mon Sep 29 21:02:47 CEST 2014


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Wed Sep 17 19:51:40 2014 +0200| [e3a00acde05c925617dc19b5373969d864bf8414] | committer: Vittorio Giovara

hevc: Initialize mergecand_list to 0

Unbreak cf6090dc6252f2b276aa4133e3d73a89f4c6046c.

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3a00acde05c925617dc19b5373969d864bf8414
---

 libavcodec/hevc_mvs.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c
index cc5a16c..a611b76 100644
--- a/libavcodec/hevc_mvs.c
+++ b/libavcodec/hevc_mvs.c
@@ -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;



More information about the ffmpeg-cvslog mailing list