diff options
author | Adrian Grange <agrange@google.com> | 2013-08-09 09:21:15 -0700 |
---|---|---|
committer | Adrian Grange <agrange@google.com> | 2013-08-09 09:21:15 -0700 |
commit | 12eb2d02677a1f6eb556e594fb76acac994f0aa4 (patch) | |
tree | 3b5348381ac1ec2b0ddc49081e14411505e577f8 | |
parent | 6a8ec3eac29d7937c7b8c0d45e272dd98aae8188 (diff) | |
download | libvpx-12eb2d02677a1f6eb556e594fb76acac994f0aa4.tar libvpx-12eb2d02677a1f6eb556e594fb76acac994f0aa4.tar.gz libvpx-12eb2d02677a1f6eb556e594fb76acac994f0aa4.tar.bz2 libvpx-12eb2d02677a1f6eb556e594fb76acac994f0aa4.zip |
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
-rw-r--r-- | vp9/common/vp9_loopfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |