设f(x)=2sin(wx+p)-m,恒有f(x+π/2)=f(-x)成立.且f(π/4)=-1,则m的值为