已知过点A(-2,m)和B(m,4)与直线2x+y-1=0平行,则m为()