ffmpeg_player: fix memory corruption when upsampling (e.g. s16le => s32le) and audio stuttering when downsampling (e.g. float32le => s16le)