frontends/omx: fix build warning
authorLeo Liu <leo.liu@amd.com>
Sun, 10 Jan 2021 16:15:38 +0000 (11:15 -0500)
committerLeo Liu <leo.liu@amd.com>
Mon, 11 Jan 2021 23:42:18 +0000 (18:42 -0500)
commitc53a886ba86546ea14866c7c9a4d3ea25e8c39ff
treed32e588952dd4dea8d596930cd6b634ac2804dc9
parent059ae7cb923a17a2aae36ad107be3a1881085464
frontends/omx: fix build warning

From code path, it's easy to see that the variable is only used
with condition, and the variable gets initialized with the same
condition before getting used, but we can initialize it when defined
to avoid the warning.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8404>
src/gallium/frontends/omx/bellagio/vid_dec_av1.c