lavc: use av_get_media_type_string and avcodec_get_name in avcodec_string.