From 12eb2d02677a1f6eb556e594fb76acac994f0aa4 Mon Sep 17 00:00:00 2001 From: Adrian Grange Date: Fri, 9 Aug 2013 09:21:15 -0700 Subject: Correct bug in loopfilter initialization The memset sets 16 bytes rather than the correct size of the final array dimension (MAX_MODE_LF_DELTAS). (In response to bug posted by Manjit Hota to codec-devel and webm-discuss lists) Change-Id: I8980f5aa71ddc9d7ef57c5b4700bc28ddf8651c7 --- vp9/common/vp9_loopfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vp9') diff --git a/vp9/common/vp9_loopfilter.c b/vp9/common/vp9_loopfilter.c index 66df62753..19d772bd8 100644 --- a/vp9/common/vp9_loopfilter.c +++ b/vp9/common/vp9_loopfilter.c @@ -108,7 +108,7 @@ void vp9_loop_filter_frame_init(VP9_COMMON *const cm, MACROBLOCKD *const xd, if (!lf->mode_ref_delta_enabled) { // we could get rid of this if we assume that deltas are set to // zero when not in use; encoder always uses deltas - vpx_memset(lfi->lvl[seg_id][0], lvl_seg, 4 * 4); + vpx_memset(lfi->lvl[seg_id][0], lvl_seg, sizeof(lfi->lvl[seg_id][0])); continue; } -- cgit v1.2.3