decoder/ffmpeg: move functions into the AvioStream struct
decoder/ffmpeg: simplify mpd_ffmpeg_open_input()