hevc: fix checks