check each WriteBlockResidualCavlc to avoid overflow

reviewed at: https://rbcommons.com/s/OpenH264/r/578/