hevc: avoid mixing declarations and code