change sws_format_name to return const char*, supress many warnings