ffmpeg_player: refactor the decode loop

This moves the converter.resample call outside the switch
statement, making it easier to support outputting part of the
decoded output for frames that partially overlap the output range.