We have studied the important astrophysical S-factor for 36 known p-nuclei with (p, γ) reactions at low energy in the mass region A≈ 74–196. This is done by folding the density-dependent M3Y (DDM3Y) interaction with spherical relativistic mean field (RMF) densities. The densities are obtained from different parameter sets such as G1, G2, NL1, NL2, NL3*, NL-SH, DD-ME1, DD-ME2 and DD-PC1. The independence of the S-factor on different densities is discussed and compared with experimental data and with NON-SMOKER calculations whenever available.