]> granicus.if.org Git - libvpx/commit
vp8 mfqe: zero map[]
authorJohann <johannkoenig@google.com>
Wed, 14 Mar 2018 20:10:08 +0000 (13:10 -0700)
committerJohann <johannkoenig@google.com>
Wed, 14 Mar 2018 20:56:39 +0000 (13:56 -0700)
commit1f41c0d37f59d3099260b435a87a6f89de404695
tree8490411abff9b4a69e77c4513d509f91476efbc5
parent8276005eba660ee076ccb9712d6f005c38419880
vp8 mfqe: zero map[]

The loop appears to set map[i] with the intention of running
the 'j' loop up to that point. However, without zero'ing map[]
first the behavior is unpredictable.

Fixes a static analysis warning:
warning: Branch condition evaluates to a garbage value
for (j = 0; j < 4 && map[j]; ++j) {

Change-Id: Ifa39353d8aa5cc47b467a7d3d8cdd3b5319fd997
vp8/common/mfqe.c