avformat: utils: K&R formatting cosmetics

Also adjust some comment wording / spelling and reorder header #includes.