camera: Work around aliasing violation

Change-Id: I23fe09368ba5594136ee2063e99f87bc860b5f3a
Signed-off-by: zwliew <zhaoweiliew@gmail.com>