Depends.
If your old H-1 I-94 does not expire and you are laid off, then you have the H-1 grace period of 60 days. So, you will have no any problem if the H-1 transfer is filed within 60 days after you are laid off no matter whether the old employer withdrew/revoked the H-1 or not.