Fix crash when using ffmpeg to play mp3 and ogg