]> granicus.if.org Git - libvpx/commit
Remove UNINITIALIZED_IS_SAFE
authorJohann <johannkoenig@google.com>
Tue, 31 Jan 2017 23:18:40 +0000 (15:18 -0800)
committerJohann Koenig <johannkoenig@google.com>
Tue, 14 Feb 2017 00:56:08 +0000 (00:56 +0000)
commit8a1fb4027345c7f36ef02bea969484018ee0693b
treea9ffca3c911fcf097215b824fd2fb914978aa8e2
parent5cc0a364ae9bd3e3ac6248f85283cf0cfa9ab07f
Remove UNINITIALIZED_IS_SAFE

Where clang static analysis or gcc -Wmaybe-uninitialized warns of
uninitialized values, assign 0 to ints, MB_MODE_COUNT to
MB_PREDICTION_MODE, and B_MODE_COUNT to B_PREDICTION_MODE.

Assert that the modes have been changed from the invalid value by
the end of the function.

Change-Id: Ib11e1ffb08f0a6fe4b6c6729dc93b83b1c4b6350
vp8/encoder/onyx_if.c
vp8/encoder/pickinter.c
vp8/encoder/rdopt.c
vpx_ports/mem.h