ffmpeg_player: refactor the sample format mapping to use a lookup table