Aspect ratio wrong when playing video filmed with smartphone

When I play a video that was filmed with a smartphone and has 1080x1920 resolution smplayer thinks it's a 1920x1080 video and gets the aspect ratio wrong. If I play the video with mpv the aspect ratio is correct.