Checked the result of these 3 patches into GIT just now. I did delete the line "printf("ofmt name %s \n", format_name);" as it seemed to be for debugging only and we don't want to add any unnecessary information on the startup window so important stuff does not get buried.
Try this series instead, it guards setting stream sample aspect ratio
only to muxers supporting it