ffmpeg: move field order decision making to encoder initialization