media: Fix aliasing violations

Change-Id: Ia4daef8f8f7cc752438820a814b05e43a06187bd