]> granicus.if.org Git - libvpx/commit
vp8 rdopt.c: zero rd.[rate_uv|distortion_uv]
authorJohann <johannkoenig@google.com>
Wed, 14 Mar 2018 20:25:05 +0000 (13:25 -0700)
committerJohann <johannkoenig@google.com>
Wed, 14 Mar 2018 20:56:39 +0000 (13:56 -0700)
commitf9a13a1786e3ab2a35f9f5a97731ec6d05421dda
tree3b97792f55b5ea747c01867d458bd298c5f25588
parent1f41c0d37f59d3099260b435a87a6f89de404695
vp8 rdopt.c: zero rd.[rate_uv|distortion_uv]

These values are not consistently set before calling update_best_mode.

In vp9_rdopt.c they are individual values instead of a struct and are
zero'd at declaration.

Clears a static analysis warning:
warning: The right operand of '-' is a garbage value
RDCOST(x->rdmult, x->rddiv, (rd->rate2 - rd->rate_uv - other_cost),

warning: The right operand of '-' is a garbage value
(rd->distortion2 - rd->distortion_uv));

Change-Id: I19895d062e7c0ac67937126ebc5dcb0afd3a2931
vp8/encoder/rdopt.c