hevc: remove some unnecessary differences with libav
hevc: avoid mixing declarations and code