ffmpeg: use a AVDictionary instead of the context to move swr parameters around